I have a massive text file and want to remove all lines that are less than 6 characters long.
I tried the following search string (Regular expressions - Perl)
^.{0,5}\n\r$ -- string not found
^.{0,5}\n\r -- string not found
^.{0,5}$ -- leaves blank lines
^.{0,5}$\n\r -- string not found
^.{0,5}$\r -- leaves blank lines
^.{0,5}$\r\n -- **worked**
My question is why should the last one work and the 4th one not work? Why should the 5th one leave blank lines.
Thanks.