Date: 07/25/00
- Next message: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Previous message: Egon Schmid: "Re: [PHP-DOC] online manual update"
- Next in thread: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
mohrt Tue Jul 25 12:13:40 2000 EDT
Modified files:
/phpdoc/en/functions pcre.xml
Log:
updated preg_match_all() example error
Index: phpdoc/en/functions/pcre.xml
diff -u phpdoc/en/functions/pcre.xml:1.13 phpdoc/en/functions/pcre.xml:1.14
--- phpdoc/en/functions/pcre.xml:1.13 Thu Jul 20 12:11:33 2000
+++ phpdoc/en/functions/pcre.xml Tue Jul 25 12:13:40 2000
@@ -229,9 +229,9 @@
<example>
<title>Find matching HTML tags (greedy)</title>
<programlisting role="php">
-$html = "<b>bold text<b>lt;a href=howdy.html>click me<a>
+$html = "<b>bold text</b><a href=howdy.html>click me</a>
-preg_match_all("/(<w]+)[^>lt;2> $html, $matches);
+preg_match_all("/(<w]+)[^><2> $html, $matches);
for($i=0; $i< count($matches[0]); $i++) {
echo "matched: ".$matches[0][$i]."\n";
@@ -246,12 +246,12 @@
matched: <b>bold text<b>
part 1: <b>
part 2: bold text
-part 3: <b>
+part 3: </b>
matched: <a href=howdy.html>click me<a>
part 1: <a href=howdy.html>
part 2: click me
-part 3: <a>
+part 3: </a>
</programlisting>
</para>
<simpara>
- Next message: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Previous message: Egon Schmid: "Re: [PHP-DOC] online manual update"
- Next in thread: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

