Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Regular expression with multiple lines

by Ratazong (Monsignor)
on Sep 25, 2013 at 10:05 UTC ( #1055645=note: print w/replies, xml ) Need Help??


in reply to Regular expression with multiple lines

Maybe your website contains the word Legal more than once? you use the greedy match (.*), which would match everything up to the last occurence of Legal. You might want to try using (.*?) instead.

HTH, Rata

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1055645]
help
Chatterbox?
[karlgoethebier]: Discipulus: Now learn German with the Grimm Brothers...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (9)
As of 2017-07-25 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (369 votes). Check out past polls.