# REGEXP_COUNT() Function

### Description

Returns the number of times a regular expression matches in a string

### Syntax

```sql
REGEXP_COUNT(source_string, pattern [, position [, match_type]])
```

### Parameters

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

### Example

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

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

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