diff --git a/driveGnuPlots.pl b/driveGnuPlots.pl index db57e3a..285d2a7 100755 --- a/driveGnuPlots.pl +++ b/driveGnuPlots.pl @@ -186,8 +186,8 @@ sub mainThread { } } - # regexp for a possibly floating point, possibly scientific notation number - my $numRE = qr/([-]?[0-9\.]+(?:e[-]?[0-9]+)?)/; + # regexp for a possibly floating point, possibly scientific notation number, fully captured + my $numRE = qr/([-]?[0-9\.]+(?:e[-]?[0-9]+)?)/o; my $xlast; while( $_ = ($dataQueue && $dataQueue->dequeue()) // <> )