Javascript Reference
Categories: regular expression

javascript regular expression lastIndex

@July 12, 2008, 5:41 a.m.
lastIndex Firefox/Netscape/NN 4 IE 4 ECMA 3  
Read/Write  

This is the zero-based index value of the character within the string where the next search for the pattern begins. In a new search, the value is zero. You can also set the value manually if you wish to start at a different location or skip some characters.

 
Example
 
myRE.lastIndex = 30;
 
Value

Integer.


Powered by Linode.