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?
In reply to Re^3: Finding the index of a string with a regexp
by bart
in thread Finding the index of a string with a regexp
by OnionKnight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |