$number = "..2341-24234233."; if ($number =~ /\d/ && $number =~ /^([\d.-]*)$/) { print $1; } [download]
:-)
duff
In reply to Re: Golf this reg ex by duff in thread Golf this reg ex by bradcathey