entity fix

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61998 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Hartmut Holzgraefe 2001-11-11 16:27:56 +00:00
parent 8244f72e92
commit cbc686dad2

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.29 $ -->
<!-- $Revision: 1.30 $ -->
<reference id="ref.regex">
<title>Regular Expression Functions (POSIX Extended)</title>
<titleabbrev>Regexps</titleabbrev>
@ -255,7 +255,7 @@ echo $string; /* Output: 'This string has 4 words.' */
<example>
<title>Replace URLs with links</title>
<programlisting role="php">
$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]",
$text = ereg_replace("[[:alpha:]]+://[^&lt;&gt;[:space:]]+[[:alnum:]/]",
"&lt;a href=\"\\0\"&gt;\\0&lt;/a&gt;", $text);
</programlisting>
</example>