http://qs321.pair.com?node_id=795671


in reply to Re^3: Regexp not capturing in named subrules
in thread Regexp not capturing in named subrules

For clarity, the regex expands to the equivalent of:

re = %r{ (?: (?<thing>.­+) ){0} (?<thing>.­+) }

So, yes, (?<thing>.+) did match. It is just that the first instance didn't match. In Perl, %+ only records the captures of the first instance.

- tye