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;
[download]
Update:
The "g" was just fixed in the message I replied to, but not the extra "/"
Update 2:
Now all the problems are fixed. :)
Comment on
Re: Re: Strip non-numeric
Download
Code
In Section
Seekers of Perl Wisdom