Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Is there a Limit on Matching .*by LazerRed (Pilgrim) |
on Jul 15, 2003 at 00:11 UTC ( [id://274235]=note: print w/replies, xml ) | Need Help?? |
Exactly what I was thinking sauoq
Is looking for everything on one line, so it will not match unless everything <title></title><h1></h1> is on the same line. Where: $chunk =~ m%<title>(.+)</title>%i;And:$chunk =~ m%<h1>(.+)</h1>%i; is matching each thing on their own lines.
In Section
Seekers of Perl Wisdom
|
|