The Parse Regex Groups block for Nodestly workflows extracts captured groups from a regex match.
Use it when
Extract numbered and named captures from the first match of a bounded safe regular expression.
Inputs and outputs
- Text —
text, required. - Pattern —
text, required. - Matched — output
boolean. - Full match — output
text. - Groups — output
list. - Named groups — output
record. - Index — output
number.
Controls
- Case mode — default
sensitive; choices:sensitive,insensitive. - Line mode — default
single; choices:single,multiline.
Rules
The safe regex subset permits literals, character classes, anchors, unquantified captures, repeated exact counted atoms such as {4}, and at most one variable-width atom quantifier such as + or {1,4} in the whole pattern. It rejects alternation, lookarounds, backreferences, property escapes, group quantifiers, multiple variable-width quantifiers, and adjacent or lazy quantifiers. Patterns are at most 256 characters and input text 16,384; runtime isolation timeout is defense in depth.
Example
Pattern (?<area>\d{3})-(\d{4}) extracts named group area and two numbered groups.
Failure behavior
Missing inputs, wrong connector values, unsafe records, unsupported values, cycles, unsupported modes, and size-limit violations stop the workflow and mark this block. Correct the highlighted connector or setting, then run again. Inputs are never changed.
Exact settings reference
These are the saved settings and defaults. If a value is connected to the matching input, that connected value is used.
| ID | Setting | Control | Default | Bounds/options |
|---|---|---|---|---|
caseMode | Case mode | toggle | sensitive | options: Sensitive (sensitive), Insensitive (insensitive) |
lineMode | Line mode | toggle | single | options: Single line (single), Multiline (multiline) |
Errors and recovery
When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.
Connector data types
The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.
| Direction | Connector | Type | Required |
|---|---|---|---|
| Input | text — Text | text | yes |
| Input | pattern — Pattern | text | yes |
| Output | matched — Matched | boolean | on success |
| Output | match — Full match | text | on success |
| Output | groups — Groups | list | on success |
| Output | namedGroups — Named groups | record | on success |
| Output | index — Index | number | on success |
