July 1998
Intermediate to advanced
1456 pages
65h 5m
English
$1, ..., $9 — NN 4 IE J3 ECMA n/a
Read-only
Parenthesized subcomponents of a regular expression return results.
These results are stored individually in properties labeled 1 through
9, preceded by the $ shortcut symbol. The order is
based on the position of the left parenthesis of a subcomponent: the
leftmost subcomponent result is placed into $1.
These properties may be used directly within parameters to
String methods that use regular expressions (see
the String.replace() method).
RegExp.$2
String.
Read now
Unlock full access