Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Is there a Limit on Matching .*

by LazerRed (Pilgrim)
on Jul 15, 2003 at 00:11 UTC ( #274235=note: print w/replies, xml ) Need Help??


in reply to Is there a Limit on Matching .*

Exactly what I was thinking sauoq

$chunk =~ m%<title>(.+)</title>.*<h1>(.+)</h1>%i;
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://274235]
help
Chatterbox?
QM waves to the peanut gallery, and wishes he were writing Perl today.

How do I use this? | Other CB clients
Other Users?
Others cooling their heels in the Monastery: (6)
As of 2017-06-29 09:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (657 votes). Check out past polls.