Date: 09/30/00
- Next message: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Previous message: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions oci8.xml"
- Next in thread: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Maybe reply: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
ronabop Sat Sep 30 13:00:30 2000 EDT
Modified files:
/phpdoc/en/functions pcre.xml
Log:
Fixed example per errata.
Index: phpdoc/en/functions/pcre.xml
diff -u phpdoc/en/functions/pcre.xml:1.30 phpdoc/en/functions/pcre.xml:1.31
--- phpdoc/en/functions/pcre.xml:1.30 Thu Sep 14 13:35:00 2000
+++ phpdoc/en/functions/pcre.xml Sat Sep 30 13:00:30 2000
@@ -363,9 +363,9 @@
<example>
<title>Replacing several values</title>
<programlisting>
-$patterns = array ("/(19|20\d{2})-(\d{1,2})-(\d{1,2})/",
+$patterns = array ("/(19|20)(\d{2})-(\d{1,2})-(\d{1,2})/",
"/^\s*{(\w+)}\s*=/");
-$replace = array ("\\3/\\4/\\1", "$\\1 =");
+$replace = array ("\\3/\\4/\\1\\2", "$\\1 =");
print preg_replace ($patterns, $replace, "{startDate} = 1999-5-27");
</programlisting>
</example>
- Next message: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Previous message: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions oci8.xml"
- Next in thread: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Maybe reply: Ron Chmara: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

