Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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 scrutinizing the Monastery: (15)
As of 2015-07-28 18:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (258 votes), past polls