Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: Regular expression fetching multiple matches

by dave_the_m (Monsignor)
on Jan 06, 2013 at 11:17 UTC ( [id://1011876]=note: print w/replies, xml ) Need Help??


in reply to SOLVED:Regular expression fetching multiple matches

Replace the second .* with .*? . The greedy match is consuming both anchors.

Dave.

Replies are listed 'Best First'.
Re^2: Regular expression fetching multiple matches
by ansh batra (Friar) on Jan 06, 2013 at 11:21 UTC

    working !! thanks :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 12:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found