Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Variable matching on a regex

by eric256 (Parson)
on Jun 17, 2010 at 15:00 UTC ( #845221=note: print w/replies, xml ) Need Help??


in reply to Re^2: Variable matching on a regex
in thread Variable matching on a regex

Looks like minor typo at the start of the regex, but it works!

$data =~ /(?:(\d+)\s*(?{push @results, $^N}))+$/;

___________
Eric Hodges

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://845221]
help
Chatterbox?
[Corion]: marto: Yeah, I can imagine that
[choroba]: create a ticket if the number of tickets reaches a limit
[choroba]: how deep meta could it go?
[marto]: this sounds like a sub section for Sane Dots

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (9)
As of 2017-01-24 10:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (203 votes). Check out past polls.