diff --git a/functions/pcre.xml b/functions/pcre.xml index 96a6c84df4..bb706f1c2b 100644 --- a/functions/pcre.xml +++ b/functions/pcre.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (Perl-Compatible) PCRE @@ -712,13 +712,15 @@ $textbody = preg_replace ("/".preg_quote($word)."/", preg_grep returns the array consisting of the elements of the input array that match - the given pattern. + the given pattern. + Since PHP 4.0.4, the results returned by preg_grep are indexed using the keys from the input array. If this behavior is undesirable, use array_values on the array returned by - preg_grep to reindex the values. + preg_grep to reindex the values. + @@ -912,7 +914,6 @@ $fl_array = preg_grep ("/^(\d+)?\.\d+$/", $array); - Pattern Syntax Describes PCRE regex syntax