STRING MATCHES WITH

Checks whether a needle string (treated as a regex pattern) exists within a haystack string and returns the match result. Use this worker whenever a workflow needs a simple string-search or pattern-match decision step.

When to use

Classification: process.

Tagged: match, pattern, regex, scalar, search, string, transformation.

Inputs

Label ID Type Default Required Description
Haystack haystack scalar The source string to search within; provide any plain-text or serialized scalar value that should be inspected for the pattern.
Needle needle scalar The pattern (interpreted as a regex) to search for inside the haystack; e.g. ‘error’ or ‘[0-9]+’ — no surrounding slashes needed, they are added automatically.

Outputs

Label ID Type Description
string_match_output_1 string_match_output_1 scalar The result of the regex match operation — typically the matched substring or a truthy/falsy scalar indicating whether the needle pattern was found in the haystack.

Disciplines

  • platform.workflow

Runnable example

A runnable example is registered for this worker. Open the example workflow on the d3VIEW canvas: /api/workflow/example?id=string_match


Auto-generated from transformation schema. Worker id: string_match. Schema hash: 5b63b7c9d37a. Hand-curated docs in workerexamples/ override this page when present.