From 58105b064d77696d6d34db57128b16e60cc6c6d5 Mon Sep 17 00:00:00 2001 From: Dima Kogan Date: Fri, 28 Jan 2011 14:28:51 -0800 Subject: [PATCH] better 'number' regexp --- bin/feedGnuplot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/feedGnuplot b/bin/feedGnuplot index 5ff1065..9b76335 100755 --- a/bin/feedGnuplot +++ b/bin/feedGnuplot @@ -440,7 +440,7 @@ sub mainThread } # regexp for a possibly floating point, possibly scientific notation number - my $numRE = '[-]?[\d\.]+(?:e[-+]?\d+)?'; + my $numRE = '-?\d*\.?\d+(?:[Ee][-+]?\d+)?'; # a point may be preceded by an id my $pointRE = $options{dataid} ? '(\w+)\s+' : '()';