if ( $line =~ /-\d+\./ || $line =~ /-\d*\.\d+/ ) [download]
-. won't match.
In reply to Re: Regex negative number question by delirium in thread Regex negative number question by Lori713