- or download this
'1234'
/(?<P>(?&V))(?<Q>.)(?(DEFINE)(?<V>...))/
...
←[0m←[37;40m ) ←[0m ←[36;40m
+ The end of definition block←[0m
←[34;40;4m
←[0m
- or download this
$_=1234;
m{
(?<P>(?&V)) # match <V> and save to $+{P}
...
(?<V> ...) # <V> aka (?&V) is three chars
)
}xm;
- or download this
m{
(?<P> # The start of a named capturing block (also $1)
...
) # The end of definition block
}x