# REGEXP_REPLACE() Function

### Description

Replaces substrings in a string based on a regular expression pattern

### Syntax

```sql
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

```sql
SELECT
    REGEXP_REPLACE(full_name, ' ', '_')
FROM
    rippling.employee.Employee
LIMIT
    5;
```

Source: https://developer.rippling.com/documentation/rippling-platform/transformations/sql-reference/regexp_replace

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
