in reply to Re: Re: Fast file parsing
in thread Fast file parsing
Good catch! The anchor makes all the difference, and the regex even beats substr in this case when I run it on my machine. So, index is better than regex for unanchored matches but much worse for anchored ones.