samesch         Thu Dec 20 19:19:27 2001 EDT

  Modified files:              
    /phpdoc/de/functions        regex.xml 
  Log:
  added accidentially removed CDATA tags again
  
Index: phpdoc/de/functions/regex.xml
diff -u phpdoc/de/functions/regex.xml:1.24 phpdoc/de/functions/regex.xml:1.25
--- phpdoc/de/functions/regex.xml:1.24  Tue Dec 18 18:01:06 2001
+++ phpdoc/de/functions/regex.xml       Thu Dec 20 19:19:26 2001
@@ -57,16 +57,17 @@
     <example>
      <title>Beispiele regulärer Ausdrücke</title>
      <programlisting role="php">
-ereg (&quot;abc&quot;, $string);            
-/* Gibt true zurück, falls &quot;abc&quot;
+<![CDATA[
+ereg ("abc", $string);            
+/* Gibt true zurück, falls "abc"
    irgendwo in $string gefunden wird. */
 
-ereg (&quot;^abc&quot;, $string);
-/* Gibt true zurück, falls &quot;abc&quot;
+ereg ("^abc", $string);
+/* Gibt true zurück, falls "abc"
    am Anfang von $string gefunden wird. */
 
 ereg ("abc$", $string);
-/* Gibt true zurück, falls &quot;abc&quot;
+/* Gibt true zurück, falls "abc"
    am Ende von $string gefunden wird. */
 
 eregi ("(ozilla.[23]|MSIE.3)", $HTTP_USER_AGENT);  
@@ -77,14 +78,15 @@
 /* Setzt drei Wörter, die durch Leerzeichen getrennt
    sind, in $regs[1], $regs[2] und $regs[3] ein. */
 
-$string = ereg_replace ("^", "&lt;br /&gt;", $string); 
-/* Setzt ein &lt;br /&gt; Tag vor $string. */ 
+$string = ereg_replace ("^", "<br />", $string); 
+/* Setzt ein <br /> Tag vor $string. */ 
 
-$string = ereg_replace ("$", "&lt;br /&gt;", $string); 
-/* Setzt ein &lt;br /&gt; Tag hinter $string. */
+$string = ereg_replace ("$", "<br />", $string); 
+/* Setzt ein <br /> Tag hinter $string. */
 
 $string = ereg_replace ("\n", "", $string);
 /* Entfernt alle Zeilenumbrüche aus $string. */
+]]>
      </programlisting>
     </example>
    </para>
@@ -157,11 +159,13 @@
      <example>
       <title><function>ereg</function> Beispiel</title>
       <programlisting role="php">
+<![CDATA[
 if (ereg ("([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})", $date, $regs)) {
     echo "$regs[3].$regs[2].$regs[1]";
 } else {
     echo "Ungültiges Datumsformat: $date";
 }
+]]>
       </programlisting>
      </example>
     </para>
@@ -229,10 +233,12 @@
      <example>
       <title><function>ereg_replace</function> Beispiel</title>
       <programlisting>
+<![CDATA[
 $string = "Das ist ein Test";
 echo ereg_replace (" ist", " war", $string);
 echo ereg_replace ("( )ist", "\\1war", $string);
 echo ereg_replace ("(( )ist)", "\\2war", $string);
+]]>
       </programlisting>
      </example>
     </para>
@@ -246,7 +252,8 @@
      <example>
       <title><function>ereg_replace</function> Beispiel</title>
       <programlisting>
-&lt;?php
+<![CDATA[
+<?php
 /* Dieses funktioniert nicht wie erwartet. */
 $zahl = 4;
 $zeichenkette = "Diese Zeichenkette hat vier Wörter.";
@@ -259,15 +266,18 @@
 $zeichenkette = ereg_replace('vier', $zahl, $zeichenkette);
 echo $zeichenkette;   /* Output: 'Diese Zeichenkette hat 4 Wörter.' */
 ?>
+]]>
       </programlisting>
      </example>
     </para>
     <para>
      <example>
-      <title>Replace URLs with links</title>
+      <title>Ersetzen von URLs durch Links</title>
       <programlisting role="php">
-$text = ereg_replace("[[:alpha:]]+://[^&lt;&gt;[:space:]]+[[:alnum:]/]",
-                     "&lt;a href=\"\\0\"&gt;\\0&lt;/a&gt;", $text);
+<![CDATA[
+$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",
+                     "<a href=\"\\0\">\\0</a>", $text);
+]]>
       </programlisting>
      </example>
     </para>
@@ -304,11 +314,13 @@
      Unterschied, dass sie übereinstimmende Buchstaben nicht nach
      Groß- und Kleinschreibung unterscheidet.
      <example>
-      <title><function>eregi</function> example</title>
+      <title><function>eregi</function> Beispiel</title>
       <programlisting role="php">
+<![CDATA[
 if (eregi("z", $string)) {
     echo "'$string' contains a 'z' or 'Z'!";
 }
+]]>
       </programlisting>
      </example>
     </para>
@@ -396,7 +408,9 @@
      <example>
       <title><function>split</function> Beispiel</title>
       <programlisting role="php">
+<![CDATA[
 list($user,$pass,$uid,$gid,$extra)= split (":", $passwd_line, 5);
+]]>
       </programlisting>
      </example>
     </para>
@@ -418,10 +432,12 @@
      <example>
       <title><function>split</function> Beispiel</title>
       <programlisting role="php">
+<![CDATA[
 $datum = "04/30/1973";  // Trennzeichen darf ein Schrägstrich, Punkt
                         // oder Bindestrich sein
 list ($monat, $tag, $jahr) = split ('[/.-]', $datum);
-echo "Monat: $monat; Tag: $tag; Jahr: $jahr&lt;br&gt;\n";
+echo "Monat: $monat; Tag: $tag; Jahr: $jahr<br>\n";
+]]>
       </programlisting>
      </example>
     </para>
@@ -525,7 +541,9 @@
      <example>
       <title><function>sql_regcase</function> Beispiel</title>
       <programlisting role="php">
+<![CDATA[
 echo sql_regcase ("Foo bar");
+]]>
       </programlisting>
      </example>
      Gibt <screen>[Ff][Oo][Oo] [Bb][Aa][Rr]</screen> aus.


Reply via email to