$ perl -MRegexp::Common -E 'say $RE{num}{int}' (?:(?:[+-]?)(?:[0123456789]+)) [download]
In reply to Re: pull out num from str by JavaFan in thread pull out num from str by icoder