$url =
"<BODY>http://www.al-e_x.com/wh_at.php?what=2123123123
ftp://www.al-e_x.com/wh_at.php?what=2123123123<I>
mailto://alex@what_who_where-xyz.com</BODY>";
$url = eregi_replace(
"((http|mailto|ftp):\/\/[[:space:]<>]{1,})",
"<a href='\1'>\1</a>",$url);
print $url;
?>