Rather than use the tagging method why not use a function I wrote to tag up a url in a string.
function tagurl($instring){
$curpos=0;
$length=strlen($instring);
while($startpos=strpos($instring," http:",$curpos)){
// we have found the beginning of a url
$startpos++;
$curpos=$startpos;
$char = "";
$url = "";
while ($char!=" "){
$char=substr($instring,$curpos,1);
$url.=$char;
$curpos++;
if($curpos==$length) break;
}
// we have now got the whole url so replace it with tags included
$instring = str_replace($url,"<a href=\"$url\">$url</a>",$instring);
$length=strlen($instring);
}
return($instring);
}
// example of how to use the func
$test="blah blah blah [url]http://www.soulmatchmaker.com[/url] blah blah cblah [url]http://www.babywelcome.com[/url]";
$test=tagurl($test);
echo $test;