string.replaceListNoCase()

Replaces occurrences of the elements from a delimited list in a string with corresponding elements from another delimited list. The search is NOT case-sensitive.

string.replaceListNoCase( list1=string, list2=string, delimiter_list1=string, delimiter_list2=string, includeEmptyFields=boolean )

Returns: String

Argument Description
list1
string, required

string list of search strings

list2
string, required

string list of replacement strings

delimiter_list1
string, optional

Delimiter for search, or if no replacement delimiter is defined, this delimiter is used for search and replacement.

Alias: delimiter, delimiterList1

delimiter_list2
string, optional

Delimiter for replacement.

Alias: delimiterList2

includeEmptyFields
boolean, optional

When true, empty elements are preserved

Examples

str="xxxAbCdefghijxxXabcDefghij";
	writeDump(str.replaceListNoCase('A,b,c,d,E,f,g,H,i,J', '0,1,2,3,4,5,6,7,8,9'));

See also