strtr_list - Translate substrings.
strtr_list(str,from,to)
in: res=<{strtr_list("aa123bb456xx789",["a","b","x"],["cc","ddd","yyyy"])}>. out: res=cccc123dddddd456yyyyyyyy789. in: res=<{strtr_list("aa123bb456xx789",["a","b","x"],["cc","ddd","yyyy"])}>. out: res=cccc123dddddd456yyyyyyyy789. in: res=<{strtr_list("hello world, hi hhh",["h","hi","hello"],["-","hello","hi"])}>. out: res=hi world, hello ---. in: res=<{strtr_list("aa123bb456xx789",["a","b","x"],["cc","ddd","yyyy"])}>. out: res=cccc123dddddd456yyyyyyyy789.
sn
Written by Pusnei Sergey, <sergey@sednove.com>
1.0 2014-09-09 21:24:14 laplante@sednove.com