STRING REGEX¶
Applies a regular-expression pattern to an input string and returns the first match. Use this worker whenever a workflow needs to extract or validate a substring from a scalar text value using standard regex syntax.
When to use¶
Classification: process.
Tagged: pattern_matching, regex, scalar, string, text_extraction, transformation.
Inputs¶
| Label | ID | Type | Default | Required | Description |
|---|---|---|---|---|---|
| Response | response | scalar | — | ✓ | The input string (haystack) to search; provide any scalar text value from which the regex pattern should be matched. |
| Regex | regex | scalar | — | ✓ | The regular-expression pattern (needle) to match against the input string — supplied without surrounding delimiters, as the worker automatically wraps the value in forward slashes (e.g. supply d+ not /d+/). |
Outputs¶
| Label | ID | Type | Description |
|---|---|---|---|
| string_regex_output_1 | string_regex_output_1 | scalar | The first substring matched by the supplied regular-expression pattern; returns an empty/null scalar if no match is found. |
Disciplines¶
- data.dataset.transform
Runnable example¶
A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=string_regex
Auto-generated from transformation schema. Worker id: string_regex. Schema hash: 075351b8ea19. Hand-curated docs in workerexamples/ override this page when present.