Name

lastIndex — NN 4 IE J3 ECMA n/a

Synopsis

Read/Write

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.

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.