Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: Regular expression with multiple lines

by Ratazong (Prior)
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

Comment on Re: Regular expression with multiple lines
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (4)
As of 2015-11-28 02:57 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (737 votes), past polls