my %apc; while ($text =~ m{APC[s]? \s ((\s|\d{3}|,|and)+)}xmsg) { my $extract = $1; while ($extract =~ m{(\d{3})}xmsg) { $apc{$1} = 1; } } for my $apc (sort {$a <=> $b} keys %apc) { print "$apc\n"; }
In reply to Re: regexp match repetition breaks in Perl
by lima1
in thread regexp match repetition breaks in Perl
by barkingdoggy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |