Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

multiple matches per line *AND* multiple capture groups per match

by Special_K (Monk)
on Dec 21, 2013 at 18:02 UTC ( [id://1068046]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $test_regexp = qr/url="(http:\/\/downloads\.bbc\.co\.uk\/podcasts\/wor
    +ldservice\/globalnews\/(globalnews_${year}${mon}${mday}-\d{4}[a-z]\.m
    +p3))"/;
    
  2. or download this
    while (<TEMP_XML_FILE>)
    {
    ...
                printf("filename = %s, complete_url = %s\n", $filename[$i]
    +, $complete_url[$i]);
                <>;
            }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1068046]
Approved by davido
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others sharing their wisdom with the Monastery: (5)
As of 2024-04-23 07:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found