Date: 07/27/00
- Next message: Jon Parise: "[PHP-DOC] cvs: phpdoc /en/functions xml.xml"
- Previous message: Rui Hirokawa: "[PHP-DOC] cvs: phpdoc /ja/functions pcre.xml"
- Next in thread: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
mohrt Thu Jul 27 09:06:37 2000 EDT
Modified files:
/phpdoc/en/functions pcre.xml
Log:
fixed syntax errors in pcre examples
Index: phpdoc/en/functions/pcre.xml
diff -u phpdoc/en/functions/pcre.xml:1.19 phpdoc/en/functions/pcre.xml:1.20
--- phpdoc/en/functions/pcre.xml:1.19 Wed Jul 26 09:21:37 2000
+++ phpdoc/en/functions/pcre.xml Thu Jul 27 09:06:36 2000
@@ -244,12 +244,12 @@
</example>
This example will produce:
<programlisting>
-matched: <b>bold text<b>
+matched: <b>bold text</b>
part 1: <b>
part 2: bold text
part 3: </b>
-matched: <a href=howdy.html>click me<a>
+matched: <a href=howdy.html>click me</a>
part 1: <a href=howdy.html>
part 2: click me
part 3: </a>
@@ -371,8 +371,7 @@
// and white space. It will also convert some
// common HTML entities to their text equivalent.
-$search = array ("'<script[^>]*?>.*?</script>'si",
- // Strip out javascript
+$search = array ("'<script[^>]*?>.*?</script>'si", // Strip out javascript
"'<[\/\!]*?[^<>]*?>'si", // Strip out html tags
"'([\r\n])[\s]+'", // Strip out white space
"'&(quote|#34);'i", // Replace html entities
@@ -555,8 +554,8 @@
<example>
<title><function>preg_grep</function> example</title>
<programlisting role="php">
-preg_grep ("/^(\d+)?\.\d+$/", $array); // find all floating point
- // numbers in the array
+preg_grep ("/^(\d+)?\.\d+$/", $array); // find all array elements
+ // containing floating point numbers
</programlisting>
</example>
</para>
- Next message: Jon Parise: "[PHP-DOC] cvs: phpdoc /en/functions xml.xml"
- Previous message: Rui Hirokawa: "[PHP-DOC] cvs: phpdoc /ja/functions pcre.xml"
- Next in thread: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

