function link_it($text)
{
$text= preg_replace("/(^|[
])([w]*?)((ht|f)tp(s)?://[w]+[^ ,"
<]*)/is", "$1$2<a href="$3" >$3</a>", $text)
$text= preg_replace("/(^|[
])([w]*?)((www|ftp).[^ ,"
<]*)/is", "$1$2<a href="http://$3" >$3</a>", $text)
$text= preg_replace("/(^|[
])([a-z0-9&-_.]+?)@([w-]+.([w-.]+)+)/i", "$1<a href="mailto:$2@$3">$2@$3</a>", $text)
return($text)
} |
|