Built-in action Built In

Match text against a pattern and extract named values from it. Useful for parsing dates, addresses, URLs, and structured text. Uses Go RE2 regex syntax.

At a Glance

FieldValue
Action IDregex
CategoryBuilt In
ConnectorNot required
Requires gasNo
Funds movementNone declared
Tagsutility, regex, parsing, text, extraction, data-processing

Payload Schema

FieldTypeRequiredDescription
textstringYesThe text to match against the regex pattern. Supports workflow variables like {{node.result.field}}.
patternstringYesRegular expression pattern (Go RE2 syntax). Use (?P<name>...) for named capture groups. Max 1024 characters.
globalbooleanNoIf true, find all matches instead of just the first. Default: false.

Result Schema

FieldTypeRequiredDescription
matchedbooleanYesWhether the pattern matched the text
matchesobjectNoCaptured groups. Single mode: object with group names as keys. Global mode: array of such objects. Each object includes key '0' for the full match. Access named groups via {{nodeId.result.matches.groupName}}.

Examples

json
{ "type": "regex", "payload": { "text": "2024-01-15T10:30:00Z", "pattern": "(?P<year>\\d{4})-(?P<month>\\d{2})-(?P<day>\\d{2})" }, "children": []}

Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.

Ask a question... ⌘I