in reply to Re^2: How to optimize a regex on a large file read line by line ?
in thread How to optimize a regex on a large file read line by line ?

How do you handle a chunk that ends in the middle of the pattern? I did it by completing the partial line (see code line with comment "finish partial line").

  • Comment on Re^3: How to optimize a regex on a large file read line by line ?

Replies are listed 'Best First'.
Re^4: How to optimize a regex on a large file read line by line ?
by marioroy (Prior) on Apr 18, 2016 at 05:38 UTC

    Yes, that is likely to happen when slurping a chunk. MCE handles that automatically by reading till the end of line.