mirror of
https://github.com/mailscope/kumomta.git
synced 2026-08-19 19:08:17 +00:00
10 lines
238 B
Markdown
10 lines
238 B
Markdown
# `kumo.string.replace(STRING, FROM, TO)`
|
|
|
|
{{since('2024.09.02-c5476b89')}}
|
|
|
|
Replaces all matches of `FROM` with `TO` and returns the resulting string.
|
|
|
|
```lua
|
|
assert(kumo.string.replace('this is old', 'old', 'new') == 'this is new')
|
|
```
|