Description
Specifies the substrings matched by the corresponding parenthesized subexpressions in the most recent regular expression match. Read-only. Static
Syntax
rgexp.$n($1 ...$9)
Example
re = new RegExp("d(b*)(d)","gi");
str = "cdbBdbsbdbdzdd";
trace(re.exec(str));//output: dbBd,bB,d
trace(re.$1);//output: bB
trace(re.$2);//output: b