perlquestion
xafwodahs
Hello Monks,
Let's say I have
<code>
$x = "a1aa11 b2bb22bbb222 c3cc33";
</code>
and I want a single regex that grabs all the number characters between the spaces. So, in other words, I want an array like [2, 22, 222] from:.
<code>
(@nums) = $x =~ /<something here>/<modifiers here>;
</code>
What would your wisdom suggest?