Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Isn't /m for multiline regex?

by GertMT (Friar)
on Apr 20, 2010 at 07:18 UTC ( #835689=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Isn't /m for multiline regex?
in thread Isn't /m for multiline regex?

from perlfaq6

Here's code that finds everything between START and END in a paragraph:

undef $/; # read in whole file, not just one line or paragraph while ( <> ) { while ( /START(.*?)END/sgm ) { print "$1\n"; } }


Comment on Re^3: Isn't /m for multiline regex?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (17)
As of 2015-07-06 20:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (83 votes), past polls