Skip to main content

Text Comparison

Category: Processing

Description: Compare two pieces of text to check if they are equal, equal ignoring case, start or end with a specific prefix or suffix, or match a regular expression pattern.

info

The 'Matches Regex' variant uses linear-time RE2 regular expression syntax to safely evaluate patterns.

Equal To​

Checks whether two pieces of text are exactly equal (case-sensitive).

Inputs​

NameTypeRequiredDescription
Text 1texttrueThe first piece of text to compare
Text 2texttrueThe second piece of text to compare

Outputs​

NameTypeDescription
OutputbooleanWhether the two pieces of text are equal

Output Event Triggers​

Name
Next

Equal To (Ignore Case)​

Checks whether two pieces of text are equal, ignoring uppercase and lowercase differences.

Inputs​

NameTypeRequiredDescription
Text 1texttrueThe first piece of text to compare
Text 2texttrueThe second piece of text to compare

Outputs​

NameTypeDescription
OutputbooleanWhether the two pieces of text are equal ignoring case

Output Event Triggers​

Name
Next

Starts With​

Checks whether the first piece of text starts with the second piece of text.

Inputs​

NameTypeRequiredDescription
Text 1texttrueThe text to check
Text 2texttrueThe prefix to check for

Outputs​

NameTypeDescription
OutputbooleanWhether Text 1 starts with Text 2

Output Event Triggers​

Name
Next

Ends With​

Checks whether the first piece of text ends with the second piece of text.

Inputs​

NameTypeRequiredDescription
Text 1texttrueThe text to check
Text 2texttrueThe suffix to check for

Outputs​

NameTypeDescription
OutputbooleanWhether Text 1 ends with Text 2

Output Event Triggers​

Name
Next

Matches Regex​

Checks whether the text matches a regular expression pattern.

Inputs​

NameTypeRequiredDescription
TexttexttrueThe text to test
PatterntexttrueThe regular expression pattern to match against

Outputs​

NameTypeDescription
OutputbooleanWhether the text matches the regular expression pattern

Output Event Triggers​

Name
Next