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:
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"; } }
|
---|
In Section
Seekers of Perl Wisdom