I think the way God Intended patterns to be defined for later use is
qr/(?(DEFINE) (?<name>pattern) )/x
In reply to Re^7: Regexp not capturing in named subrules
by Corion
in thread Regexp not capturing in named subrules
by diotalevi
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |