Skip to main content

Overview

The extract transformation extracts data from a string using a regular expression. It returns the first capture group match.

Syntax

extract(<variable>, search="")

Parameters

ParameterTypeRequiredDescription
variablestringYesThe string to extract from
searchstringYesThe regular expression pattern (returns the first capture group)

Examples

extract(<variable>, search="(\\d+)")
extract(<variable>, search="([A-Z]+)")