Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Skip 2 new linesby GrandFather (Saint) |
on Nov 08, 2010 at 04:31 UTC ( [id://870017]=note: print w/replies, xml ) | Need Help?? |
Maybe you should show us a little sample because what you have shown is not consistent with the problem you describe (or at least not my understanding of it). As given the regex doesn't alter new line characters except in the unlikely context where \s+ is in your expression. That seems an unusual place to be worried about preserving paragraph breaks. However, if indeed you want to preserve paragraphs where the \s+ is, the following may turn the trick for you:
True laziness is hard work
In Section
Seekers of Perl Wisdom
|
|