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.
Related Modules
Equal To
Checks whether two pieces of text are exactly equal (case-sensitive).
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Text 1 | text | true | The first piece of text to compare |
| Text 2 | text | true | The second piece of text to compare |
Outputs
| Name | Type | Description |
|---|---|---|
| Output | boolean | Whether 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
| Name | Type | Required | Description |
|---|---|---|---|
| Text 1 | text | true | The first piece of text to compare |
| Text 2 | text | true | The second piece of text to compare |
Outputs
| Name | Type | Description |
|---|---|---|
| Output | boolean | Whether 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
| Name | Type | Required | Description |
|---|---|---|---|
| Text 1 | text | true | The text to check |
| Text 2 | text | true | The prefix to check for |
Outputs
| Name | Type | Description |
|---|---|---|
| Output | boolean | Whether 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
| Name | Type | Required | Description |
|---|---|---|---|
| Text 1 | text | true | The text to check |
| Text 2 | text | true | The suffix to check for |
Outputs
| Name | Type | Description |
|---|---|---|
| Output | boolean | Whether Text 1 ends with Text 2 |
Output Event Triggers
| Name |
|---|
| Next |
Matches Regex
Checks whether the text matches a regular expression pattern.
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
| Text | text | true | The text to test |
| Pattern | text | true | The regular expression pattern to match against |
Outputs
| Name | Type | Description |
|---|---|---|
| Output | boolean | Whether the text matches the regular expression pattern |
Output Event Triggers
| Name |
|---|
| Next |