Date: 05/29/99
- Next message: andrey: "[PHP-DEV] CVS update: php3/functions"
- Previous message: andrey: "[PHP-DEV] CVS update: php3/functions"
- Next in thread: jah: "[PHP-DEV] CVS update: php3/doc/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Saturday May 29, 1999 @ 17:28
Author: andrey
Update of /repository/php3/doc/functions
In directory php:/tmp/cvs-serv19334/doc/functions
Modified Files:
pcre.sgml
Log Message:
-Updated docs a little bit
-preg_match_all() now returns the number of global matches
Index: php3/doc/functions/pcre.sgml
diff -u php3/doc/functions/pcre.sgml:1.4 php3/doc/functions/pcre.sgml:1.5
--- php3/doc/functions/pcre.sgml:1.4 Fri May 28 18:19:19 1999
+++ php3/doc/functions/pcre.sgml Sat May 29 17:28:50 1999
@@ -68,10 +68,9 @@
<para>
If <parameter>matches</parameter> is provided, then it is filled
- with the results of search. $matches[0] will contain the full
- pattern that matched, $matches[1] will have the first captured
- parenthesized subpattern, $matches[2] will have the second
- subpattern, and so on.
+ with the results of search. $matches[0] will contain the text that
+ match the full pattern, $matches[1] will have the text that matched
+ the first captured parenthesized subpattern, and so on.
<para>
Returns true if a match for <parameter>pattern</parameter> was
@@ -186,8 +185,8 @@
to be PREG_PATTERN_ORDER.
<para>
- Returns true is any match is found, or false if no match is found
- or an error occurred.
+ Returns the number of full pattern matches, or false if
+ no match is found or an error occurred.
<example>
<title>Getting all phone numbers out of some text.</title>
@@ -225,8 +224,10 @@
<literal>\\<replaceable>n</replaceable></literal>. Every such
reference will be replaced by the text captured by the
<replaceable>n</replaceable>'th parenthesized pattern. <replaceable>n
- </replaceable>can be from 0 to 99. <literal>\\0</literal> refers to
- the text matched by the whole pattern.
+ </replaceable>can be from 0 to 99, and <literal>\\0</literal> refers to
+ the text matched by the whole pattern. Opening parentheses are
+ counted from left to right (starting from 1) to obtain the number
+ of the capturing subpattern.
<para>
If no matches are found in <parameter>subject</parameter>, then
-- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe <email protected> For help: php-dev-help <email protected>
- Next message: andrey: "[PHP-DEV] CVS update: php3/functions"
- Previous message: andrey: "[PHP-DEV] CVS update: php3/functions"
- Next in thread: jah: "[PHP-DEV] CVS update: php3/doc/functions"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

