[thelist] Help with a replace loop

Shinji Kuwayama kuwayama at apte.com
Tue Jun 12 10:45:40 CDT 2001


I take it back; this still isn't working the way I'd like it to.

<cfloop query="getTerms">
    <cfif FindNoCase('#term#',varcopy) is not 0>
		<cfset varcopy = ReplaceNoCase(varcopy,'#term#','<a href="http:///term.cfm/#term_id#.cfm" title="#definition#">#term#</a>',"ALL")>
    </cfif>	
</cfloop>

As before, when it loops back around, it'll find and replace strings inserted on the previous pass, for example in the title="#definition#" area.




More information about the thelist mailing list