http://www.perlmonks.org?node_id=455137

swaroop has asked for the wisdom of the Perl Monks concerning the following question:

Hi all,

what is the best way to seperate the digits and strings from variable ?

example:
$variable = 12345(checkthis);
I would like to seperate the digits and strings and I need only digits 12345.

thanks,
swaroop