Megan Marsh 68e083603d
Update website/source/docs/configuration/from-1.5/functions/string/replace.html.md
Co-Authored-By: Wilken Rivera <dev@wilkenrivera.com>
2020-03-10 10:51:25 -07:00

807 B

layout, page_title, sidebar_current, description
layout page_title sidebar_current description
docs replace - Functions - Configuration Language configuration-functions-string-replace The replace function searches a given string for another given substring, and replaces all occurrences with a given replacement string.

replace Function

replace searches a given string for another given substring, and replaces each occurrence with a given replacement string.

replace(string, substring, replacement)

Examples

> replace("1 + 2 + 3", "+", "-")
1 - 2 - 3

> replace("hello world", "world", "everybody")
hello everybody
  • regexreplace searches a given string for another given substring, and replaces each occurrence with a given replacement string.