in reply to How does one get all possible matches from regex?
Your "correct results" don't correspond to what I get; if you want "all possible matches for REGEX," you should use this:
i.e. "match REGEX, print what it matched, then fail."1 while /REGEX(?{print $&})(?!)/;
In Section
Seekers of Perl Wisdom