2 ms·
If it matched the first, match[2] is set. If it matched the second, match[3] is set. Or you use a better regexp library than the default JS one and use named c
by baudehlo 12y ago
If it matched the first, match[2] is set. If it matched the second, match[3] is set.
Or you use a better regexp library than the default JS one and use named captures.