Regex Match

text · A181 · starter-package 7.0.1

The Regex Match block for Nodestly workflows checks or returns text that matches a pattern.

Use it when

Check bounded text against a safe regular expression and return the first match and index.

Inputs and outputs

  • Text — text, required.
  • Pattern — text, required.
  • Matched — output boolean.
  • Match — output text.
  • Index — output number.

Controls

  • Case mode — default sensitive; choices: sensitive, insensitive.
  • Line mode — default single; choices: single, multiline.

Rules

Only the first match is returned. Index is a zero-based text offset, Match is empty and Index is -1 when no match exists. Patterns may repeat exact counted atoms but use at most one variable-width atom quantifier; the 256-character pattern and 16,384-character input limits apply.

Example

Pattern ID-\d+ finds ID-42 at its first zero-based position.

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 — Matchtexton success
Outputindex — Indexnumberon success