Skip to main content

REPLACE

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.

Syntax
REPLACE(<string>, <regex string to replace>, <new string>)
Example
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