[PHP-DOC] cvs: phpdoc /en/functions pcre.xml From: Monte Ohrt (monte <email protected>)
Date: 07/27/00

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: &lt;b&gt;bold text&lt;b&gt;
+matched: &lt;b&gt;bold text&lt;/b&gt;
 part 1: &lt;b&gt;
 part 2: bold text
 part 3: &lt;/b&gt;
 
-matched: &lt;a href=howdy.html&gt;click me&lt;a&gt;
+matched: &lt;a href=howdy.html&gt;click me&lt;/a&gt;
 part 1: &lt;a href=howdy.html&gt;
 part 2: click me
 part 3: &lt;/a&gt;
@@ -371,8 +371,7 @@
 // and white space. It will also convert some
 // common HTML entities to their text equivalent.
 
-$search = array ("'&lt;script[^&gt;]*?&gt;.*?&lt;/script&gt;'si",
- // Strip out javascript
+$search = array ("'&lt;script[^&gt;]*?&gt;.*?&lt;/script&gt;'si", // Strip out javascript
                  "'&lt;[\/\!]*?[^&lt;&gt;]*?&gt;'si", // Strip out html tags
                  "'([\r\n])[\s]+'", // Strip out white space
                  "'&amp;(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>