Or, if you want to be really portable, you could use s/\r?\n|\n?\r//g. That should catch most every platform's newline style, IIRC.
bbfu
Black flowers blossom
Fearless on my breath
In reply to Re2: catching \n
by bbfu
in thread catching \n
by TheDoc
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |