Sutar
Код: $str = '[urle="http://site.ru"]ddd[/urle]';
echo preg_replace('#\[urle=(\'|")(.*)\\1\](.*)\[\/urle\]#iU', "<a target=\"_blank\" href=\"$2\">$2</a>", $str);
Код: $str = '[urle="http://site.ru"]ddd[/urle]';
echo preg_replace('#\[urle=(\'|")(.*)\\1\](.*)\[\/urle\]#iU', "<a target=\"_blank\" href=\"$2\">$2</a>", $str);