Try also to run them in reversed order - maybe reading the file is slow the first time, and much faster then second time because the file is then in some cache from the operating system.
Also please compare the number of matches found in both cases - is it comparable?
In reply to Re: Unefficient Regexp 'Matching this or that'
by moritz
in thread Unefficient Regexp 'Matching this or that'
by pelagic
For: | Use: | ||
& | & | ||
< | < | ||
> | > | ||
[ | [ | ||
] | ] |