Date: 07/31/00
- Next message: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Previous message: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Next in thread: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
mohrt Mon Jul 31 08:51:14 2000 EDT
Modified files:
/phpdoc/en/functions pcre.xml
Log:
update preg_replace() example
Index: phpdoc/en/functions/pcre.xml
diff -u phpdoc/en/functions/pcre.xml:1.23 phpdoc/en/functions/pcre.xml:1.24
--- phpdoc/en/functions/pcre.xml:1.23 Mon Jul 31 08:31:46 2000
+++ phpdoc/en/functions/pcre.xml Mon Jul 31 08:51:13 2000
@@ -403,7 +403,8 @@
"'&(iexcl|#161);'i",
"'&(cent|#162);'i",
"'&(pound|#163);'i",
- "'&(copy|#169);'i");
+ "'&(copy|#169);'i",
+ "'&#(\d+);'e"); // evaluate as php
$replace = array ("",
"",
@@ -416,7 +417,8 @@
chr(161),
chr(162),
chr(163),
- chr(169));
+ chr(169),
+ "chr(\\1)");
$text = preg_replace ($search, $replace, $document);
</programlisting>
- Next message: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Previous message: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Next in thread: Monte Ohrt: "[PHP-DOC] cvs: phpdoc /en/functions pcre.xml"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

