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

Re: Regular expression fetching multiple matches

by dave_the_m (Prior)
on Jan 06, 2013 at 11:17 UTC ( #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
Node Status?
node history
Node Type: note [id://1011876]
help
Chatterbox?
[LanX]: wot wot?
[thezip]: W0t n0t
[perldigious]: w4st3 n0t w0t n0t

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (12)
As of 2017-03-24 18:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (305 votes). Check out past polls.