Javascript Reference
Categories: RegExp

javascript RegExp lastMatch

@March 15, 2008, 1:22 a.m.
lastMatchFirefox/Netscape/NN 4 IE 5(Mac)/5.5(Win) ECMA n/a  

Read-only  

Returns the string that matches the regular expression as a result of the most recent operation. The short version is $&.

 
Example
 
var matched = RegExp.lastMatch;
 
Value

String.


Powered by Linode.