Returns string with occurrences of substring1 replaced with substring2 in a specified scope.
Replace(string, substring1, substring2 [, scope ])
REFind, ReplaceNoCase, ReplaceList, REReplace
<!--- This example shows the use of Replace --->
<html>
<head>
<title>
Replace Example
</title>
</head>
<body bgcolor = silver>
<H3>Replace Example</H3>
<P>The Replace function returns <I>string</I> with <I>substring1</I>
replaced by <I>substring2</I> in the specified scope. This is a
case-sensitive search.
<cfif IsDefined("FORM.MyString")>
<P>Your original string, <cfoutput>#FORM.MyString#</cfoutput>
<P>You wanted to replace the substring <cfoutput>#FORM.MySubstring1#
</cfoutput>
with the substring <cfoutput>#FORM.MySubstring2#</cfoutput>.
<P>The result: <cfoutput>#Replace(FORM.myString,
FORM.MySubstring1, FORM.mySubString2)#</cfoutput>
</cfif>
...