while(<SOME_INPUT>){ $digits_only .= (join '', split /\D+/) . $/ } [download]
In reply to Re: Numbers only in a string by sh1tn in thread Numbers only in a string by powerhouse