"be consistent" | |
PerlMonks |
Re: How do I reference repeated capture groups?by Fletch (Bishop) |
on Aug 12, 2022 at 14:43 UTC ( [id://11146122]=note: print w/replies, xml ) | Need Help?? |
Is there something wrong with the (obvious?) just surround both groups with another outer set of parens (which then shifts the numerics down by one)? Should work with a named mark as well.
Edit: NVM, misread what was being asked. You could wrap the second set of parens outside the quantifier I believe but that's not going to preserve the separate matches. ENOCAFFEINE . . . Edit 2: Playing with %- and friends I'm not finding anything obvious. The other suggestion about using minor ebil like embedded code pushing to an array sounds like the most promising. <Reveal this spoiler or all in this thread>
The cake is a lie.
In Section
Seekers of Perl Wisdom
|
|