fakat linkin devamında href olmaktan çıkıyor birleşik ise link olmali görselde gösterdiğim alan link olmaktan çıktı bunu nasıl düzeltebilirim
yardimci olursanız çok sevinirim
[PHPR]
<?php
function urlDondur($metin)
{
$url = '/b((https?://|www.)?S+.(com|net|org|site|tv|online|xyz|ly|me|xy z|sbs|co|dev|live|pro|shop))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);
} ?>
[/PHPR