Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: multiple matches per line *AND* multiple capture groups per match

by educated_foo (Vicar)
on Dec 21, 2013 at 23:25 UTC ( [id://1068068]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (@groups = /$test_regexp/g) {
        while (@groups) {
    ...
            # ...
        }
    }
    
  2. or download this
    while (/$test_regexp/g) {
        ($url, $file) = ($1, $2);
        # ...
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-19 14:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found