RegExp.lastParen (Property/static)

A property of the global RegExp object.


JavaScript - 1.2
JScript - 5.5
Internet Explorer - 5.5
Netscape - 4.0
Netscape Enterprise Server - 3.0
Opera - 5.0
JavaScript syntax:-RegExp.lastParen

This property returns the text matched by the last sub-expression which was part of the most recent match. It will contain a null or undefined value if there was no previous match.


See also:RegExp pattern - grouping, RegExp pattern - references, RegExp.exec(), RegExp.test(), RegExp["$+"]

Property attributes: