For AI agents: an index of this documentation is at https://developer.rippling.com/llms.txt. Public pages have a Markdown version at the same URL with .md added.

Skip to main content
index

REGEXP_SUBSTR() Function

Use with AI:Rippling AI ChatGPT Claude Cursor

Description​

Returns a substring that matches a regular expression pattern

Syntax​

REGEXP_SUBSTR(source_string, pattern [, position [, occurrence [, match_type [, subexpression ]]]])

Parameters​

ParameterDescriptionData TypeRequired
stringString valueStringYes
patternThe pattern argumentStringYes

Example​

SELECT
REGEXP_SUBSTR(email, '@(.+)$')
FROM
rippling.employee.Employee
LIMIT
5;