This covers both ways of doing it:

<pre> # ---------------------------
# Convert url markup -> html
$Body =~ s,\[url\]http://(.*?)\[/url\],<A HREF="http://$1" target="_new">http://$1</A>,isg;
$Body =~ s,\[url\](.*?)\[/url\],<A HREF="http://$1" target="_new">http://$1</A>,isg;
$Body =~ s,\[url=http://(.*?)\],<A HREF="http://$1" target="_new">,isg;
$Body =~ s,\[url=(.*?)\],<A HREF="http://$1" target="_new">,isg;
$Body =~ s,\[/url\],</A>,isg;</pre>


<pre> # ---------------------------
# Replace html url -> markup
# $Body =~ s,<a href=.*?>(.*?)</a>,\[url\]$1\[/url\],igs;
$Body =~ s,<a href=[.*?)>,\[url=$1\],igs;
$Body =~ s,</a>,[/url\],igs;</pre>



--Eileen
<A HREF="http://www.amdragon.com/cgi-bin/wwwthreads/wwwthreads.pl" target="_new">http://www.amdragon.com/cgi-bin/wwwthreads/wwwthreads.pl</A>