javascript RegExp $1, ..., $9
@June 17, 2009, 6:26 p.m.
$1, ..., $9 | Firefox/Netscape/NN 4 IE 4 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). |
|
Example | |
RegExp.$2 var str="ABCD"; str = str.replace(/A(B)C(D)/g,'$1A$2C'); //BADC |
|
Value | |
String. |
purchase lipitor pills <a href="https://lipiws.top/">order atorvastatin online</a> lipitor 40mg price
Tovkah
- 10 months
order lipitor pills <a href="https://lipiws.top/">atorvastatin 40mg drug</a> cost lipitor 80mg
Sonahz
- 10 months
Powered by Linode.