index()
with a regexp, and found that for his case index was 10 times faster than his best regexp, and 100 times faster than his first solution.
If you are not yet subscribed, you can do it now. Free of charge:
This newsletter is about the Perl Programming languages.