How do you access the matched groups in a JavaScript regular expression?

Subscribers:
4,110
Published on ● Video Link: https://www.youtube.com/watch?v=hcgpSco7-iQ



Duration: 5:31
8 views
0


How do you access the matched groups in a JavaScript regular expression?
I hope you found a solution that worked for you :)
The Content (except music & images) is licensed under (https://meta.stackexchange.com/help/licensing)CC BY-SA |
Thanks to all those great people for their contributions!

(stackoverflow.com/users/9021/nickf)nickf |
(stackoverflow.com/users/5445/christian-c-salvad%c3%b3)Christian C. Salvadó |
(stackoverflow.com/users/96656/mathias-bynens)Mathias Bynens |
(stackoverflow.com/users/15459/philho)PhiLho |
(stackoverflow.com/users/1667822/sebastien-h)Sebastien H. |
(stackoverflow.com/users/3763783/alexz)Alexz |
A special thanks goes out to the (https://stackoverflow.com/questions/432493/how-do-you-access-the-matched-groups-in-a-javascript-regular-expression)Stackexchange community |

I wish you all a wonderful day! Stay safe :)

javascript regex







Tags:
javascript
regex