How do you access the matched groups in a JavaScript regular expression?
Answers
Answered by
3
A very cool feature of regular expressions is the ability to capture parts of a string, and put them into an array. You can do so using Groups, and in particular Capturing Groups. They are exactly the same, and return an Array with the whole matched string in the first item, then each matched group content.
Answered by
3
Answer:
It is used to access the matched groups in a JavaScript in the regular expression#
Similar questions