Parse Regex Groups

text · A180 · starter-package 7.0.1

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.

IDSettingControlDefaultBounds/options
caseModeCase modetogglesensitiveoptions: Sensitive (sensitive), Insensitive (insensitive)
lineModeLine modetogglesingleoptions: 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.

DirectionConnectorTypeRequired
Inputtext — Texttextyes
Inputpattern — Patterntextyes
Outputmatched — Matchedbooleanon success
Outputmatch — Full matchtexton success
Outputgroups — Groupsliston success
OutputnamedGroups — Named groupsrecordon success
Outputindex — Indexnumberon success