in reply to regex for multiple capture within boundary
@nums = $x =~ m/(\d+)/g; [download]
my $x = "a1aa11 b2bb22bbb222 c3cc33"; my @nums = $x =~ /\d+/g; print join(" ", @nums) . "\n"; Output: 1 11 2 22 222 3 33 [download]