Skip to main content


Deprecated version

This document refers to a deprecated version of the RQL programming language.

Please go here for documentation related to the latest supported version.

Replace a substring or a regular expression pattern, by a new string.

REPLACE(<string>, <regex string to replace>, <new string>)
replace("Hello John", "John", "Jane") // "Hello Jane"
replace("Hello John", "o", "+") // "Hell+ J+hn!"
replace("Hello John", "John", null) // null
replace(null, "A", "B") // null