[thelist] regex for highlighting search terms in coldfusion

Sarah Adams mrsanders at designshift.com
Mon Jan 30 11:31:22 CST 2006

> It shouldn't be too difficult to add that logic to the cfloop that loops
> through the occurances.

In case anyone else wants to do the same thing, here's the code I added 
(after both the <cfif> and <cfelse>) to make sure my search terms were 
replaced with the case maintained:

<cfif FindNoCase(replacethis, test, start) gt 0>
   <cfset replacethis = Mid(test, FindNoCase(replacethis, test, start), 

sarah adams
web developer & programmer
portfolio: http://sarah.designshift.com
blog: http://hardedge.ca

More information about the thelist mailing list