success!!!
If anyone is interested, for the moment it works in ANY case!
PHP Code:
function make_clickable($text)
{
$text = str_replace(array('http://','?'),array('','qmark'),$text);
if (preg_match_all('~\b([a-z0-9-]+\.)+[^\s]+\b~si', $text, $urls))
{
foreach (array_unique($urls[0]) AS $url)
{
$urltext = strlen($url) > 35 ? substr($url, 0, 21).'...'.substr($url, -10) : $url;
$text = preg_replace('~^'.$url.'~m',"<a href=\"http://$url\" target=\"_blank\" rel=\"nofollow\">$urltext</a>",$text);
}
}
$text = str_replace('qmark','?',$text);
return $text;
}
Bookmarks