w3resource logo


JavaScript Tutorials

JavaScript 1.5 version : Deprecated Features

Secondary Nav

RegExp (Regular expression) Properties

The following properties are deprecated.

Property Description
$1, ..., $9 Parenthesized 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
input The string against which a regular expression is matched.
lastMatch The last matched characters.
lastParen The last parenthesized substring match, if any.
leftContext The substring preceding the most recent match.
rightContext The 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.



Join our Question Answer community to learn and share your programming knowledge.

Solve these problems:

Java: How to convert a string to an integer in Java?

C#: Loops in c#

SQL: JOIN using more than 5 tables