|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re^2: Evaluating code in a regex at runtime: (??{...})by LanX (Monsignor) |
| on Jan 28, 2013 at 07:34 UTC ( #1015637=note: print w/ replies, xml ) | Need Help?? |
|
> Note that the contents of the match are still accessible via a named capture group: > ... ('a' x 100) =~ /(?<match>(??{'(.)' x 100}))/; ehm ... what you're showing also works with unnamed capture groups:
The OP's point was about dynamically generated capture groups, but yours is outside the embedded Perl code.
Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||