text module

text::replace

Replace all occurrences of a substring with another string.

Syntax

RQL

Parameters

NameTypeDescription
valueUtf8The original string.
searchUtf8The substring to search for.
replacementUtf8The string to replace each occurrence with.

Return Value

Returns a Utf8 with all occurrences of the search substring replaced by the replacement string.

Examples

$ Replace substring
$ ctrl+enter to run

Related Functions