From 68caa3667e4109a693948a7c88abf58ef3f69b84 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Tue, 11 Dec 2001 20:32:16 +0000 Subject: [PATCH] ereg will now return real match count instead of a fixed-size 10 element array git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@64733 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/regex.xml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/functions/regex.xml b/functions/regex.xml index 505f90f907..60d48b3ae6 100644 --- a/functions/regex.xml +++ b/functions/regex.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (POSIX Extended) Regexps @@ -128,16 +128,18 @@ $string = ereg_replace ("\n", "", $string); which starts at the first left parenthesis; $regs[2] will contain the substring starting at the second, and so on. $regs[0] will contain a copy of the complete string matched. - - - If ereg finds any matches at all, $regs will - be filled with exactly ten elements, even though more or fewer - than ten parenthesized substrings may actually have matched. - This has no effect on ereg's ability to - match more substrings. If no matches are found, $regs will not be - altered by ereg. - - + + + + Up to (and including) PHP 4.1.0 $regs will be + filled with exactly ten elements, even though more or fewer than + ten parenthesized substrings may actually have matched. This has + no effect on ereg's ability to match more + substrings. If no matches are found, $regs + will not be altered by ereg. + + + Searching is case sensitive.