foreach (<DATA>) { print $_ if $_ =~ /^(\?|-?\d*\.?\d+)?$/; } __DATA__ ? 3 3.3 .3 -3 -3.3 -.3 ? 3-3 - [download]
In reply to Re^4: need help with a Regex by TedPride in thread need help with a Regex by Peamasii