No such thing as a small change | |
PerlMonks |
Re: Code expressions in regex refer to the regex group captured, by name / relativeby haukex (Archbishop) |
on Jan 14, 2022 at 01:49 UTC ( [id://11140443]=note: print w/replies, xml ) | Need Help?? |
See %+ and %-; the following prints "oo":
But also note the documentation of (?{...}): WARNING: Using this feature safely requires that you understand its limitations. Code executed that has side effects may not perform identically from version to version due to the effect of future optimisations in the regex engine. For more information on this, see Embedded Code Execution Frequency.
In Section
Seekers of Perl Wisdom
|
|