Skip to content

the implementation of regular expressions in javascript #446

Closed Answered by Josh-Cena
letochagone asked this question in Code examples
Discussion options

You must be logged in to vote

What you want is here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/RegExp/@@match

Even when the match result is empty, the lastIndex is still advanced by 1.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by Rumyra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants