- Index
- »
- axon
- »
- func:replace
def
func:replace
replace(val, from, to)
String replace of all occurrences of from
with to
. All three parameters must be strings.
Examples:
"hello".replace("hell", "t") >> "to" "aababa".replace("ab", "-") >> "a--a"
String replace of all occurrences of from
with to
. All three parameters must be strings.
Examples:
"hello".replace("hell", "t") >> "to" "aababa".replace("ab", "-") >> "a--a"