Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.
Microsoft® JScript®
lastIndex Property (Regular Expression)
 Language Reference 
Version 3 

See Also                  Applies To


Description
Specifies the index at which to start the next match.
Syntax
rgexp.lastIndex [= index]

The lastIndex property syntax has these parts:

Part Description
rgexp Required. A Regular Expression object. Can be a variable name or a literal.
index The index from which to begin the next search.

Remarks
The lastIndex property is modified by the exec method, and the match, replace, and split methods of the String object.

The following rules apply to values of lastIndex:


Home | Javascript validator | JavaScript Editor JavaScript EditorGet Advanced
JavaScript and Ajax Editor,
Validator and Debugger!

1st JavaScript Editor.