"be consistent" | |
PerlMonks |
Re^5: regex doubt on excludingby Lotus1 (Vicar) |
on Apr 21, 2014 at 17:44 UTC ( [id://1083055]=note: print w/replies, xml ) | Need Help?? |
I just tried jellisii2's solution, s/^\s*$/\n/mg, and it worked without the non-greedy modifier. Each matching line was replaced by a single newline.
In Section
Seekers of Perl Wisdom
|
|