solved. i have simply removed all existing hrefs then applied function again...

<cfset new_text = REReplaceNoCase(old_text, "(<a)[^>]*>|(</a>)","","all")>

<cfset new_text = REReplaceNoCase(new_text, "([[:alnum:]]*://[[:alnum:[EMAIL 
PROTECTED](\.[[:alnum:]][[:alnum:]-]*[[:alnum:]]\.)?[[:alnum:]]{2,}(\.?[[:alnum:]\/[EMAIL
 PROTECTED]|:~`+$%?_##&-])+)", "<a target=""_blank"" href=""\1"">\1</a>", 
"ALL")> 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to 
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j

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

Reply via email to