Replaces occurrences of the elements from a delimited list
in a string with corresponding elements from another delimited
list. The search is case-sensitive.
replaceList(String, list1, list2 [, includeEmptyFields])
replaceList(String, list1, list2, delimiter [, includeEmptyFields])
replaceList(String, list1, list2, delimiterList1, delimiterList2 [, includeEmptyFields])
→ returns string
,
,
,
false
<cfoutput>#replaceList("My Test String", "Test, String", "Replaced, Sentence")#</cfoutput>
Expected Result: My Replaced Sentence
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.