You might find that you don't have to tune your regex much once you switch to reading line-by-line. That's because each line will be much smaller than 8K, so the penalty for backtracking on a .* will be consequently much smaller.
-sam
In reply to Re: Matching lines in 2+ GB logfiles.
by samtregar
in thread Matching lines in 2+ GB logfiles.
by dbmathis
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |