From: Ilia Alshanetsky Date: Sat, 17 Dec 2005 16:33:53 +0000 (+0000) Subject: MFB51: Added token for capturing arbitrary whitespace blocks inside text. X-Git-Tag: RELEASE_1_0_4~348 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b211d8cc3c0de633e1e928ac689bb2aa3b90c58d;p=php MFB51: Added token for capturing arbitrary whitespace blocks inside text. --- diff --git a/run-tests.php b/run-tests.php index aa1d7354a7..eac645fce5 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1295,6 +1295,7 @@ COMMAND $cmd // Stick to basics $wanted_re = str_replace("%e", '\\' . DIRECTORY_SEPARATOR, $wanted_re); $wanted_re = str_replace("%s", ".+?", $wanted_re); //not greedy + $wanted_re = str_replace("%w", "\s*", $wanted_re); $wanted_re = str_replace("%i", "[+\-]?[0-9]+", $wanted_re); $wanted_re = str_replace("%d", "[0-9]+", $wanted_re); $wanted_re = str_replace("%x", "[0-9a-fA-F]+", $wanted_re);