([A-Za-z][A-Za-z0-9+.-]{1,120}:[A-Za-z0-9/](([A-Za-z0-9$_.+!*,;/?:@&~=-])|%[
A-Fa-f0-9]{2}){1,333}(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*,;/?:@&~=%-]{0,1000}))?)

That should do for you.

:)

-----Original Message-----
From: Victor Moore [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 20, 2007 11:43 AM
To: CF-Talk
Subject: Regex to convert url to link

Hi,

I get a text field form the db. Sometimes the text contains url like:
http://www.abc.com (or just www.abc.com).
Id is possible to write a regex to replace it to:
<a href="http://www.abc.com";>http://www.abc.com</a>

Thanks
Victor




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Create Web Applications With ColdFusion MX7 & Flex 2. 
Build powerful, scalable RIAs. Free Trial
http://www.adobe.com/products/coldfusion/flex2/?sdid=RVJS 

Archive: 
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:281641
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4

Reply via email to