Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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 ( #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? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2021-12-01 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?