in reply to regexp for scalar containing a mixture of LF & CRLF
Which will replace all LF and CRLF to whatever your local line ending character is.s/\015?\012/\n/g;
Note: The /m modifier only affects the ^ and $ anchors, so is doing nothing in your RE since you have neither. The /s only affects what the . meta-character matches, and again, since you aren't using it, does nothing.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: regexp for scalar containing a mixture of LF & CRLF
by NateTut (Deacon) on Dec 09, 2004 at 23:56 UTC |