subchar

Syntax: %subchar(s,list1,list2)

Replaces characters of string s contained in list1 with the corresponding character in list2

Examples:

#SHOW %subchar("hello world","hl","12")

displays "1e22o wor2d" where all "h" characters are replaced with "1" and all "l" characters are replaced with "2"

#SHOW %subchar("hello world","hl","")

displays "eo word" where all "h" and "l" characters are removed (replaced with nothing).



Contents %string %sum