in reply to Re^4: 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 ?

First of all make.sure the results fit, thus grep doesn't take $.as regex meta symbol!!!

Than I seen to remember problems with end of line localization and or Unicode

Please check the encoding for \n in your file and your Perl.

HTH! :)

Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
Je suis Charlie!

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

Replies are listed 'Best First'.
Re^6: How to optimize a regex on a large file read line by line ?
by John FENDER (Acolyte) on Apr 16, 2016 at 18:05 UTC
    All langage give the same count using the same regex (i speak for my own test). The EOF are the usual Windows one (13+10). Grep take the $ as it should be as the result are the same with the other try. :)