Ah! Of course.
But a quick test shows me that that too does not propagate captures from the delayed patterns to the including pattern, which is why I memorised the rule as “combining precompiled patterns requires recompilation.”
(Most of the time I build a pattern programmatically from a list involves matching one of a list of hash keys, some way or other, so capturing is always involved in some fashion.)
Thanks for the correction.
Makeshifts last the longest.
In reply to Re^3: Programmatic regex disjunction
by Aristotle
in thread Programmatic regex disjunction
by gaal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |