Skip to content

String Match

Checks if a string matches another string or pattern.

Performs a comparison between two strings based on the selected Operation.

  • String 1: The primary string to be evaluated.
  • String 2: The substring or pattern to check against.

Operations#

Operation Description
Contains True if String 1 contains String 2.
Not Contains True if String 1 does not contain String 2.
Starts With True if String 1 starts with String 2.
Ends With True if String 1 ends with String 2.
Equals True if String 1 is identical to String 2.
Regex True if String 1 matches the regular expression pattern in String 2.

Inputs#

Port Description
String 1
The input string.
Operation
The comparison method to use.
String 2
The substring or pattern to match.

Outputs#

Port Description
Result
True if the condition is met, otherwise false.

ID: core/string-match@v1