Skip to main content

REGEX_REPLACE

The REGEX_REPLACE function searches the text for matches to a regular expression pattern and replaces each match with specified new text.

Use

REGEX_REPLACE( old_text, pattern, new_text )
Replaces characters within the text matching the specified regular expression pattern with new text.

ParameterRequiredDescription
old_textYestext in which to replace some characters
patternYesthe regular expression to match
new_textYesthe text that will replace characters in old_text (supports capture groups)

ReturnsText

Example

This section isn’t ready just yet—we’re working on it! Please check back soon, and if you need help right away, feel free to ask in our Community Forum.

ON THIS PAGE