Skip to content

Regex

mapping category: string no `||`

Selects from the input the substring matching a regular expression.

Selects the text from the input that matches the supplied regular expression. If the input does not match, an empty string is returned.

Parameters

1pattern Mandatory — accepts: regex

The regular expression to match. Use /.../ notation to delimit the pattern.

Input type

  • STRING

Output type

  • STRING

Examples

Capture a phone number prefix

Regex(/\(01\)[0-9]+/)

Match anything

Regex(//)

See also

SubString, Map