From: Raghubansh Kumar Date: Mon, 24 Dec 2007 04:20:15 +0000 (+0000) Subject: Changing the regex for %f so the it will match e-, e+ and e. X-Git-Tag: RELEASE_2_0_0a1~1116 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7deb552a078c4d7b2ad38ff540daaefa705a3c80;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 dff348b1a7..b9906800c2 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1600,7 +1600,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|e[+-]?\d+)?', $wanted_re); $wanted_re = str_replace('%c', '.', $wanted_re); // %f allows two points "-.0.0" but that is the best *simple* expression }