Here are what mines look like:
$string = preg_replace("/\[url\](.*?)\[\/url\]/si", "<a href=http://\\1 target=_blank>[url]http://\\1[/url]</a>", $string);
$string = preg_replace("/\[url=(.*?)\](.*?)\[\/url\]/si", "<a href=\\1 target=_blank>\\2</a>", $string);
the first one lets you do:
[url ]http://mysite.com[/url ]
which is like doing: <a href="http://mysite.com">http://mysite.com</a>
the next one allows you to specify a name for the url:
[ url=http://mysite.com]Click here[/url ]
same as:
<a href="http://mysite.com">Click here</a>