in reply to Searching string for paragraph..
Have you tried the multiple-line modifier (m at the end of the regex)? See the entry in the PerlFAQ (part 6).
if(Dumper($page) =~ m/Daniel(.*?)world/m) { print $1; }
Update: moritz is right ... use s instead of m!
Rata (who promises to be more concentrated next time)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching string for paragraph..
by moritz (Cardinal) on May 06, 2010 at 13:08 UTC | |
|