Index of the Last Match
Discover what you can do with the 'lastIndex' property of a RegExp object with the help of an example.
We'll cover the following...
lastIndex
property
Depending on the method you use, matches aren’t performed globally, but, instead one at a time on every execution of the method. If you’re working like this, then you might want to consider taking advantage of the ...