Non importa, ho risolto con questo! ^^

Codice PHP:
function replace_url($str){
    
$str preg_replace ('(([:/~a-zA-Z0-9_\-\.]+)\.([:/~a-zA-Z0-9]+))'"<a href=\"http://$1.$2\" target=\"_blank\" rel=\"nofollow\" title=\"Vai a $1.$2\">$1.$2</a>"$str);
    return 
str_replace("http://http://","http://",$str);