JavaScript lastIndex Property
JavaScript lastIndex Property
The lastIndex property is used for specifying the index at which to start the next match. It will return an integer that is used to specify character position immediately after the last match is found.
Syntax:-
Its syntax is:- RegExpObject.lastIndex
Return:-
Its return is:- integer/number that specifies the character position immediately after the last match found