Re: cvs: php-src / run-tests.php

From: Date: Mon, 24 Dec 2007 10:46:03 +0000
Subject: Re: cvs: php-src / run-tests.php
References: 1  Groups: php.cvs 
Request: Send a blank email to php-cvs+get-47588@lists.php.net to get a copy of this message
@@ -1600,7 +1600,7 @@ $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
Please use [Ee] there instead of E|e. That is much more intuitive on what it'll match. Nuno

« previous php.cvs (#47588) next »