Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

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.

Comment on Re: Is there a Limit on Matching .*
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (15)
As of 2015-03-03 19:10 GMT
Find Nodes?
    Voting Booth?

    When putting a smiley right before a closing parenthesis, do you:

    Results (81 votes), past polls