replace Function
replace searches a given string for another given substring, and replaces each occurrence with a given replacement string.
hcl
replace(string, substring, replacement)Examples
shellsession
> replace("1 + 2 + 3", "+", "-")
1 - 2 - 3
> replace("hello world", "world", "everybody")
hello everybodyRelated Functions
regex_replacesearches a given string for another given substring, and replaces each occurrence with a given replacement string.