From cbc686dad2a48edf2a1252ebc87ff94591232a36 Mon Sep 17 00:00:00 2001 From: Hartmut Holzgraefe Date: Sun, 11 Nov 2001 16:27:56 +0000 Subject: [PATCH] entity fix git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@61998 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/regex.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions/regex.xml b/functions/regex.xml index 2f5c836905..9d2f1b0cfe 100644 --- a/functions/regex.xml +++ b/functions/regex.xml @@ -1,5 +1,5 @@ - + Regular Expression Functions (POSIX Extended) Regexps @@ -255,7 +255,7 @@ echo $string; /* Output: 'This string has 4 words.' */ Replace URLs with links -$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", +$text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]", "<a href=\"\\0\">\\0</a>", $text);