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.
| 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 — Match | text | on success |
| Output | index — Index | number | on success |
