Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

How to remove extra line breaks (using regexp)?

by larus (Acolyte)
on Apr 17, 2009 at 14:03 UTC ( [id://758238]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    A6.8.5 This is 
    an example
    ...
    A6.8.6 This is 
    an example
    sentence
    
  2. or download this
    A6.8.5 This is a example sentence
    A6.8.6 This is a example sentence
    
  3. or download this
    ..snip..
    $line =~ s/\r(?!\n)/ /g;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://758238]
Approved by ikegami
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-25 19:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found