in reply to Re: How to strip non-numeric values from string?in thread How to strip non-numeric values from string?
use strict; use warnings; for (qw(12.34 0.05lb 999)) { if($_=~/([0-9.]+)/) { print "$1\n"; } } [download]