mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 06:21:16 +08:00
better 'number' regexp
This commit is contained in:
parent
df9ab119d5
commit
58105b064d
@ -440,7 +440,7 @@ sub mainThread
|
|||||||
}
|
}
|
||||||
|
|
||||||
# regexp for a possibly floating point, possibly scientific notation number
|
# 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
|
# a point may be preceded by an id
|
||||||
my $pointRE = $options{dataid} ? '(\w+)\s+' : '()';
|
my $pointRE = $options{dataid} ? '(\w+)\s+' : '()';
|
||||||
|
Loading…
Reference in New Issue
Block a user