Skip to main content
Matches a pattern in the input string and replaces the first matched portion (from the left) with the specified replacement.

Syntax

REGEXP_REPLACE_ALL

Matches a pattern in the input string and replaces all matched portions with the specified replacement.

Syntax

Parameters

If any of the arguments to these functions is NULL, the return value is NULL.

Return Type

TEXT

Examples

Replace first occurrence of ! with !!!:

Rows: 1Execution time: 5.23ms

Remove leading and trailing spaces:

Rows: 1Execution time: 5.17ms

Duplicate every character:

Rows: 1Execution time: 5.53ms

Mask email address by leaving first character only (Note: this is for illustrative purposes only, the email matching pattern is too simplistic):

Rows: 3Execution time: 1.54ms

Convert dates into US format:

Rows: 4Execution time: 1.53ms