Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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: (4)
As of 2014-07-13 18:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (251 votes), past polls