in reply to Re: Strip non-numeric
in thread Strip non-numeric

There's one extra "/" at the end, and no "g" flag so only one would be removed. You need:
$var =~ s/\D//g;
Update: The "g" was just fixed in the message I replied to, but not the extra "/"
Update 2:Now all the problems are fixed. :)