Javascript Reference
Categories: RegExp

javascript RegExp lastIndex

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

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. This property is echoed in the regular expression object instance, and is supported there in Navigator.

myRE.lastIndex = 30;


Powered by Linode.