Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (5)
As of 2016-12-04 02:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (61 votes). Check out past polls.