Replace (string, substring1, substring2 [, scope]) DescriptionA case-sensitive search that replaces substring1 with substring2 in a string. scope can be one, which replaces the first occurrence, or all, which replaces all occurrences. Example<cfset exampleString = "This is a test of the emergency broadcasting system"> <cfset exampleString2 = "George George George of the Jungle"> <cfoutput> #Replace(exampleString, "broadcasting", "ColdFusion")# #Replace(exampleString2, "George", "", all)# </cfoutput> |