Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re^2: regex for multiple capture within boundary

by ikegami (Patriarch)
on Jul 14, 2006 at 22:10 UTC ( [id://561350]=note: print w/replies, xml ) Need Help??


in reply to Re: regex for multiple capture within boundary
in thread regex for multiple capture within boundary

I hope you're refering to one of these and not one of the following ;)
local *nums; our @nums; $x =~ / \s (?: [^\s\d]* (\d+) (?{ push(@nums, $1) }) )* /x;

or

local *nums; our @nums; $x =~ / ^ (?> \S* \s ) \S*? (?<!\d) ( (?> \d+ ) ) (?{ push(@nums, $1) }) (?!) /x;

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2024-03-29 13:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found