http://qs1969.pair.com?node_id=561315


in reply to regex for multiple capture within boundary

@nums = $x =~ m/(\d+)/g;
UPD: I just did not understand the OP correctly :)