in reply to Re: regex for multiple capture within boundary
in thread regex for multiple capture within boundary
This is pulling out all the digits. The OP is just asking for the "digits between the spaces".
Ikegami's answer is pulling out the numbers between the spaces.my $x = "a1aa11 b2bb22bbb222 c3cc33"; my @nums = $x =~ /\d+/g; print join(" ", @nums) . "\n"; Output: 1 11 2 22 222 3 33
In Section
Seekers of Perl Wisdom