Description
Replaces substrings in a string based on a regular expression pattern
Syntax
REGEXP_REPLACE(source_string, pattern, replacement [, position [, occurrence [, match_type]]])
Parameters
| Parameter | Description | Data Type | Required |
|---|---|---|---|
| string | String value | String | Yes |
| pattern | The pattern argument | String | Yes |
| replacement | Replacement string | String | No |
Example
SELECT
REGEXP_REPLACE(full_name, ' ', '_')
FROM
rippling.employee.Employee
LIMIT
5;