REGEX_REPLACE()

Prev Next

Description

Replaces content in text using a regular expression

Available In

  • Apps
  • Automations

Syntax

REGEX_REPLACE(source: text, pattern: regex, replacement: text, modifiers: modifiers) => text

Example

REGEX_REPLACE("BaNaNa", "N", "n", "g") = "Banana"
regex_replace("Hello There", "(\\w+)\\s(\\w+)", "$2 $1") = "There Hello"