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
|
---|
In Section
Seekers of Perl Wisdom