>
> Thanks again Gerald. I'll have to experiment with that. I've also since
come up
> with another solution to accomplish what I wanted to do and it works
great:
>
This is the way I also would prefer to do it. Because it makes sure $word is
correctly escaped, which may not the case if escaping is turn off.
Gerald
> [-
> $text = 'This: http://www.blah.com is a url and so is this:
http://www.fun.com';
> @words = split(/ /, $text);
> -]
>
> [$ foreach $word (@words) $]
> [$ if $word =~ /http\:\/\/\S+/i $]
> <a href="[+ $word +]">[+ $word +]</a>[+ " " +]
> [$ else $]
> [+ "$word " +]
> [$ endif $]
> [$ endforeach $]
>
> - Gavin
>
> "People are the worst drivers in the world"
> http://www.singlespeedsanonymous.com/
>
> Join PayPal and get FIVE FREE DOLLARS (no joke!):
> https://secure.paypal.x.com/refer/pal=gavinspomer%40hotmail.com
> ... and it's a very usefull account to have!
>
>
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]