Oct 25, 2005 #1 hunt00 Technical User Mar 6, 2005 79 US How to get both text link and url link works in regular expression? Used $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href=\"\\0\">\\0</a>", $text); It works fine for the url link, but breaks the text link.
How to get both text link and url link works in regular expression? Used $text = ereg_replace("[[:alpha:]]+://[^<>[:space:]]+[[:alnum:]/]","<a href=\"\\0\">\\0</a>", $text); It works fine for the url link, but breaks the text link.