Files
kumomta/docs/reference/string/replace.md
T
2024-09-02 07:27:50 -07:00

238 B

kumo.string.replace(STRING, FROM, TO)

{{since('2024.09.02-c5476b89')}}

Replaces all matches of FROM with TO and returns the resulting string.

assert(kumo.string.replace('this is old', 'old', 'new') == 'this is new')