Almost identical technology, just a little more complex...
//////////////////////////////////
$string = "[link]http://wwww.yourdomain.com[/link]";
$stripped_string = str_replace("[link]", "", $string);
$stripped_string = str_replace("[/link]", "", $stripped_string);
$newstring = str_replace("[link]", "<A HREF=\"", $string);
$newstring = str_replace("[/link]", "/" TARGET=/"_blank/">", $newstring);
echo "$newstring$stripped_string</A>";
//////////////////////////////////
It's quick and easy but it should work. You can take out the TARGET="_blank" if you don't want the link to open in a new window.
Have fun.
AaronZoller.com (Opening in 3 days - June 15th, 2002)