I have been using REReplace to find key words or group of words within
paragraphs and if found to replace those with an HREF.  All has been working
fine and well until recently when one of those key words became "sub" and
some paragraphs make use of the HTML element SUB.  So what I am curious on
is how can I adjust the CFSET below to ignore a word if that word is found
within < and > or within </ and >.

<cfset word = "sub" />

<cfset Output = REReplaceNoCase(Output, "(\W)(#Variables.Word#)(\W)", "\1<a
href=""Display.cfm?Term=#urlencodedformat(Variables.Word)#"">\2</a>\3",
"one") />

-- 
Aaron Rouse
http://www.happyhacker.com/


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

Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:314913
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