# text.replace · Rell standard library · Chromia Docs (concept)

> pure function replace(old_ value: text , new_value: text ): text Returns the text obtained by replacing all occurrences of the substring old_value in this 

Source: https://docs.chromia.com/pages/rell-stdlib/-rell-system-library/root/text/replace/

FUNCTION

# text.replace

```signature
pure function replace(old_value: text, new_value: text): text
```

Returns the text obtained by replacing all occurrences of the substring `old_value` in this text
with `new_value`.

**Parameters**

* **old\_value** — the substring to be replaced
* **new\_value** — the replacement substring

Since 0.6.0

[View this page on docs.chromia.com](https://docs.chromia.com/pages/rell-stdlib/-rell%20-system%20-library/%5Broot%5D/text/replace.html)Generated API reference, mirrored from the live docs
