Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

SOLVED:Regular expression fetching multiple matches

by ansh batra (Friar)
on Jan 06, 2013 at 10:49 UTC ( #1011874=perlquestion: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $string="<ul><li><div id='Show1400'><a href='../../../KeyboardKeys/Ret
    +ainerClip/Acer/Aspire/1400'>1400</a></div></li><li><div id='Show1410'
    +><a href='../../../KeyboardKeys/RetainerClip/Acer/Aspire/1410'>1410</
    +a></div></li>";
    
    
     my @ari=$line =~ /<a href=\'(.*?)\'>.*<\/a>/g;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1011874]
Approved by philipbailey
Front-paged by philipbailey
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (2)
As of 2015-04-19 03:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Who makes your decisions?







    Results (358 votes), past polls