J
Jacob Weber
If I do a search with a regular expression that uses parenthesized
subexpressions, is there a way to find out where it found the
subexpressions?
For example, say I do:
"bb".search(/b(.)/g);
Those parentheses matched the second "b", at index 1. Is there any way
to find that out?
Jacob
subexpressions, is there a way to find out where it found the
subexpressions?
For example, say I do:
"bb".search(/b(.)/g);
Those parentheses matched the second "b", at index 1. Is there any way
to find that out?
Jacob