Is there NO way to capture all the matches to a numerically quantified subexpression?
Of course there is:
use v6; if "abc" ~~ /(.)+/{ say $0.join(", "); }
In Perl 6, quantifying a capturing group or atom just results in an array of Match objects.
In reply to Re: How to capture quantified repeats?
by moritz
in thread How to capture quantified repeats?
by whatever
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |