Help for this page

Select Code to Download


  1. or download this
    while ($text =~ m/(APCs?)((?:\s|,|and|\d{3})+)/xgc) {
        my ($apc, $nums) = ($1, $2);
    ...
    for my $n (0..$#extracts) {
        print "Match $n = $extracts[$n]\n";
    }
    
  2. or download this
    while (my @match = $text =~ m/(APCs?)(?:(?:\s|,|and)+(\d{3}))+/xgc) {
        push @extracts, @match;
    }