From: Zoe Slattery Date: Mon, 12 Nov 2007 18:22:10 +0000 (+0000) Subject: Changing the regex for %f so the it will match E-, E+ and E. X-Git-Tag: RELEASE_2_0_0a1~1385 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7ba55c586a8a2d844c9218a82902e170366fe874;p=php Changing the regex for %f so the it will match E-, E+ and E. --- diff --git a/run-tests.php b/run-tests.php index c7841765c7..e954d09908 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1557,7 +1557,7 @@ COMMAND $cmd $wanted_re = str_replace('%i', '[+-]?\d+', $wanted_re); $wanted_re = str_replace('%d', '\d+', $wanted_re); $wanted_re = str_replace('%x', '[0-9a-fA-F]+', $wanted_re); - $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E-?\d+)?', $wanted_re); + $wanted_re = str_replace('%f', '[+-]?\.?\d+\.?\d*(?:E[+-]?\d+)?', $wanted_re); $wanted_re = str_replace('%c', '.', $wanted_re); // %f allows two points "-.0.0" but that is the best *simple* expression }