I understand that it .match()returns an array of matches or null if none are found. But how do I access the values of capture groups used with .match?
For instance:
var val = whatever.match('(?:^|;) ?' + stuff + '=([^;]*)(?:;|$)');
Assuming the regex matches a few times, how do I access the value of a capture group in a specific match?
Thank!!
source
share