local *nums; our @nums; $x =~ / ^ (?> \S* \s ) \S*? (? \d+ ) ) (?{ push(@nums, $1) }) (?!) /x;