in reply to Re^2: Finding the index of a string with a regexp
in thread Finding the index of a string with a regexp
Plus: unlike pos, it works without using /g, too.
You didn't really think Javascript could do something with regexps that Perl couldn't, did you? Where did you think its implementors got the ideas from, anyway?
|
|---|