Thursday, 28 February 2013

JavaScript 1.5 version : Deprecated Features


RegExp (Regular expression) Properties

The following properties are deprecated.
PropertyDescription
$1, ..., $9Parenthesized substring matches, if any.
$_The string against which a regular expression is matched.
$*Reflects whether or not to search in strings across multiple lines.
$&The last matched characters.
$+The last parenthesized substring match.
$`The substring preceding the most recent match
$'The substring following the most recent match
inputThe string against which a regular expression is matched.
lastMatchThe last matched characters.
lastParenThe last parenthesized substring match, if any.
leftContextThe substring preceding the most recent match.
rightContextThe substring following the most recent match.

RegExp (Regular expression) Methods

The compile method is deprecated.
The valueOf method is no longer specialized for RegExp. Use Object.valueOf.

Escape sequences

Octal escape sequences (\ followed by one, two, or three octal digits) are deprecated in string and regular expression literals.
The escape and unescape functions are deprecated. Use encodeURI, encodeURIComponent, decodeURI or decodeURIComponent to encode and decode escape sequences for special characters.
Please Google+Like this tutorial on FaceBook, Tweet, save it as bookmark andsubscribe with our Feed. Have suggestions? comment using Disqus down this page. Thanks.

No comments:

Post a Comment