Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: regexp for scalar containing a mixture of LF & CRLFby Paladin (Vicar) |
on Dec 09, 2004 at 23:03 UTC ( [id://413711]=note: print w/replies, xml ) | Need Help?? |
What about something like:
Which will replace all LF and CRLF to whatever your local line ending character is. 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.
In Section
Seekers of Perl Wisdom
|
|