my $re = qr{ Digits: \s* (?:(?<digits> (?:(?<digit>\d) (?{ local @d = (@d, $+{digit}) }) )+ )(?{ $digits = \@d })) }x; 'hello, world, Digits: 123' =~ /$re/ and print "@$digits\n";
In reply to Re: Quantified named captures in 5.10
by educated_foo
in thread Quantified named captures in 5.10
by mscha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |