cvs: phpdoc /en/functions regex.xml

From: Date: Tue, 11 Dec 2001 20:32:17 +0000
Subject: cvs: phpdoc /en/functions regex.xml
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969339632@lists.php.net to get a copy of this message
hholzgra Tue Dec 11 15:32:17 2001 EDT Modified files: /phpdoc/en/functions regex.xml Log: ereg will now return real match count instead of a fixed-size 10 element array Index: phpdoc/en/functions/regex.xml diff -u phpdoc/en/functions/regex.xml:1.32 phpdoc/en/functions/regex.xml:1.33 --- phpdoc/en/functions/regex.xml:1.32 Fri Dec 7 16:53:39 2001 +++ phpdoc/en/functions/regex.xml Tue Dec 11 15:32:16 2001 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="iso-8859-1"?> -<!-- $Revision: 1.32 $ --> +<!-- $Revision: 1.33 $ --> <reference id="ref.regex"> <title>Regular Expression Functions (POSIX Extended)</title> <titleabbrev>Regexps</titleabbrev> @@ -128,16 +128,18 @@ 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. - </simpara> - <simpara> - If <function>ereg</function> 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 <function>ereg</function>'s ability to - match more substrings. If no matches are found, $regs will not be - altered by <function>ereg</function>. - </simpara> - <simpara> + </simpara> + <note> + <simpara> + Up to (and including) PHP 4.1.0 <literal>$regs</literal> 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 <function>ereg</function>'s ability to match more + substrings. If no matches are found, <literal>$regs</literal> + will not be altered by <function>ereg</function>. + </simpara> + </note> + <simpara> Searching is case sensitive. </simpara> <simpara>

« previous php.doc (#969339632) next »