Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Evaluating code in a regex at runtime: (??{...})

by LanX (Canon)
on Jan 28, 2013 at 09:09 UTC ( #1015648=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Evaluating code in a regex at runtime: (??{...})
in thread Evaluating code in a regex at runtime: (??{...})

> What we (apparently) canít get is multiple capture groups assigned to different capture groups (whether named or unnamed) from the same dynamic match. Correct?

apparently yes, like documented:

DB<131> 'aaa' =~ /(?<outer>(??{'(?<inner>.)' x 1}))/; keys %+ => "outer"

But of course there are workarounds ... if necessary.

Cheers Rolf


Comment on Re^4: Evaluating code in a regex at runtime: (??{...})
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2015-07-08 05:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (94 votes), past polls