Date: 07/28/00
- Next message: Egon Schmid: "[PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- Previous message: Jon Parise: "[PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- Next in thread: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
mohrt Fri Jul 28 13:19:08 2000 EDT
Modified files:
/phpdoc/en/functions pcre.xml
Log:
updated preg_match_all() example
Index: phpdoc/en/functions/pcre.xml
diff -u phpdoc/en/functions/pcre.xml:1.20 phpdoc/en/functions/pcre.xml:1.21
--- phpdoc/en/functions/pcre.xml:1.20 Thu Jul 27 09:06:36 2000
+++ phpdoc/en/functions/pcre.xml Fri Jul 28 13:19:08 2000
@@ -232,7 +232,7 @@
<programlisting role="php">
$html = "<b>bold text</b><a href=howdy.html>click me</a>
-preg_match_all ("/(<w]+)[^><2> $html, $matches);
+preg_match_all ("/(<([\w]+)[^>]*>)(.*)(<\/\\2>)/", $html, $matches);
for ($i=0; $i< count($matches[0]); $i++) {
echo "matched: ".$matches[0][$i]."\n";
- Next message: Egon Schmid: "[PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- Previous message: Jon Parise: "[PHP-DOC] cvs: phpdoc /en/functions strings.xml"
- Next in thread: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

