[PHP-DEV] CVS update: php3/doc/functions From: andrey (php-dev <email protected>)
Date: 06/14/99

Date: Monday June 14, 1999 @ 15:55
Author: andrey

Update of /repository/php3/doc/functions
In directory php:/tmp/cvs-serv17479/functions

Modified Files:
        pcre.sgml
Log Message:
Error in preg_match_all() example. Needs to be updated on the site ASAP.

Index: php3/doc/functions/pcre.sgml
diff -u php3/doc/functions/pcre.sgml:1.13 php3/doc/functions/pcre.sgml:1.14
--- php3/doc/functions/pcre.sgml:1.13 Mon Jun 14 09:36:48 1999
+++ php3/doc/functions/pcre.sgml Mon Jun 14 15:55:50 1999
@@ -124,7 +124,7 @@
 
          <informalexample>
           <programlisting>
-preg_match_all("|&lt;[^>]+>(.*)&lt;/[^>]+>|U", "&lt;div align=left>a test&lt;/div>", $out, PREG_PATTERN_ORDER);
+preg_match_all("|&lt;[^>]+>(.*)&lt;/[^>]+>|U", "&lt;b>example: &lt;/b>&lt;div align=left>a test&lt;/div>", $out, PREG_PATTERN_ORDER);
 print $out[0][0].", ".$out[0][1]."\n";
 print $out[1][0].", ".$out[1][1]."\n"
           </programlisting>
@@ -152,7 +152,7 @@
 
          <informalexample>
           <programlisting>
-preg_match_all("|&lt;[^>]+>(.*)&lt;/[^>]+>|U", "&lt;div align=left>a test&lt;/div>", $out, PREG_SET_ORDER);
+preg_match_all("|&lt;[^>]+>(.*)&lt;/[^>]+>|U", "&lt;b>example: &lt;/b>&lt;div align=left>a test&lt;/div>", $out, PREG_SET_ORDER);
 print $out[0][0].", ".$out[0][1]."\n";
 print $out[1][0].", ".$out[1][1]."\n"
           </programlisting>

-- 
PHP Development Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>