roxxom adlı üyeden alıntı: mesajı görüntüle
Birde ek olarak başında https:// olmasada http:// olmasada www. olmasada normal bir metin sonu .com,org,net ile bitiyorsada url olarak algılaması için aşağıya kodu bırakıyorum, uzantıları kendin çoğaltabilirsin.

function urlDondur($metin)
{
    $url = '/\b((https?:\/\/|www\.)?\S+\.(com|net|org))\b/i';
    return preg_replace_callback($url, function($matches) {
        $url = (strpos($matches[0], 'http') === 0) ? $matches[0] : 'http://' . $matches[0];
        return '<a href="' . $url . '" target="_blank" title="' . $url . '">' . $matches[0] . '</a>';
    }, $metin);
}
ALLAH razı olsun hocam başarıyla çalıştı tam istediğim şekilde sizlere çok ama çok teşekkür ederim regex ögrenmem gerekiyor elinize sağlık cok teşekkürler