AiondaAionda

Formula reference · Text and links

REGEXEXTRACT

Extract the first regular-expression match or a capture group.

English · 23 November 2026

Review edition — editorial review is not yet complete.

Back to the function catalog

What it does

Extract the first regular-expression match or a capture group.

Syntax

REGEXEXTRACT(text, pattern [, group])

Square brackets mark optional arguments; omit the brackets. Separate arguments with commas, quote text and use a point for decimals.

Arguments, in order

ArgumentMeaning
textText to search.
patternJavaScript-style regular expression as quoted text, without / delimiters.
groupOptional capture number; 0 (default) is the entire match, 1 is the first parenthesised group.

Returns: Text.

Worked examples

Example 1

Formula

REGEXEXTRACT("INV-1042", "INV-([0-9]+)", 1)

Result

"1042"

Example 2

Formula

REGEXEXTRACT("INV-1042", "[0-9]+")

Result

"1042"

Quotes in the result indicate text; \n indicates a newline. Date results use ISO notation. The application may display dates and numbers differently according to the selected field type and interface language.

Behaviour and limits

Returns empty text if no match exists, the group is absent, or the pattern is invalid.

Use it with your fields

Replace example values with the relevant field API names when needed. A record formula uses names such as amount; a flow expression uses its context, such as $Datensatz.amount. Use your actual API names and a compatible return type. See expression basics and flows.