next up previous contents
Next: lastParen Up: Properties Previous: rightContext   Contents

$1 ...$9

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




Copyright ©2000-2007 Shanghai TopCMM Software Technologies. All Rights Reserved.