Ben aşağıdaki kodu vardır:
$string = '[url]http://google.com[/url]';
$bbreplace = array ('/\[url\](.+?)\[\/url\]/');
$bbreplacements = array ('<a href=\"\\1\">\\1</a>');
$string = preg_replace($bbreplace, $bbreplacements, $string);
print $string;
Işaret http://google.com/ adlı bir url oluşturur
mydomain.com/"http://google.com/"
yerine
http://google.com/
Bunu nasıl düzeltebilirim? Teşekkürler