And this is a simple replace and regex combo. (This replace the end tag with a (hopefully) unused character, which should be much easier to find than the endtag string)
<cfparam name="tag" default="FONT"> <cfparam name="tstr" default="An example <FONT face='fgfg'>This should be gone</FONT> This should still be there.<FONT >This is more text to remove</FONT>"> <cfset tstr2=tstr> <cfset tstr2=replace(tstr2,"</"&tag&">","�","ALL")> <cfset tstr2=reReplaceNoCase(tstr2,"<"&tag&"[^�]*�","","ALL")> <cfoutput> #tstr#<br> #tstr2#<br> </cfoutput> Jerry ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4 FAQ: http://www.thenetprofits.co.uk/coldfusion/faq Structure your ColdFusion code with Fusebox. Get the official book at http://www.fusionauthority.com/bkinfo.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

