如何从字符串中读取子字符串并使用新值替换子字符串

时间:2017-08-09 10:13:11

标签: coldfusion

目前我正在尝试从字符串中读取子字符串,并用新值替换子字符串。

<cfoutput>

<cfsavecontent variable="pckEmailContent">

    <p><a href="#TestURL#">Click here</a> to be directed to the assessment.</p>

</cfsavecontent>

</cfoutput>

<cfif findNoCase("TestLink", "#emailContent#", [start]) eq 1>

    <cfset  TestLink= pckEmailContent />

 </cfif>

0 个答案:

没有答案