# REGEXP_SPLIT() Function

### Description

Splits a string based on a regular expression pattern

**Aliases:** `REGEX_SPLIT`

### Syntax

```sql
REGEXP_SPLIT(source_string, pattern)
```

### Parameters

| Parameter | Description | Data Type | Required |
| --- | --- | --- | --- |
| _string_ | String value | String | Yes |
| _pattern_ | The pattern argument | String | Yes |

#### Notes

-   Returns an array

### Example

```sql
SELECT
    REGEXP_SPLIT(email, '@')
FROM
    rippling.employee.Employee
LIMIT
    5;
```

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

> 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.
