_Added in 1.8.10_ *$replace(string,substring,newstring,...)* Replaces any occurrence of substring in string with newstring. _[[$replace]] is case-insensitive, see [[$replacecs]] for case-sensitive version._ *Parameters* table(ktable). |*Parameter*|*Description*| | string | The string to search. | | substring | The substring to replace. | | newstring | The new string to replace with. | | ... | Additional substrings to replace. | *Example*
; Replace all occurrences of 'cd' in the string with 'xyz'.
//echo -ag $replace(abcdefg,cd,xyz)

; Remove all occurrences of 'a', 'b', 'c', 'd' in the string with 'A', 'B', 'C', 'D'.
//echo -ag $replace(abcdefg,a,A,b,B,c,C,d,D)