Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Re: remove blank lines with regex

by perlplexer (Hermit)
on May 21, 2002 at 13:22 UTC ( [id://168114]=note: print w/replies, xml ) Need Help??


in reply to Re: remove blank lines with regex
in thread remove blank lines with regex

FYI
the /s flag only matters if you have '.' in your regex.
So, /\n\n/ will work just as good as /\n\n/s
From perlre
... s Treat string as single line. That is, change "." to match any character whatsoever, even a newline, which normally it would not match. ...
--perlplexer

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-04-24 06:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found