Skip to main content
The Matches Regex action tests a string with a reusable Regular Expression value. It returns true when the pattern finds a match anywhere in the text.

Inputs

Outputs

Match the entire value

Regex matching is not automatically anchored. A pattern of \d+ returns true for Order 1042 shipped because a substring matches. Add anchors when the whole value must follow the pattern:
With that pattern, 1042 matches and Order 1042 does not. Enable the Multiline flag only when ^ and $ should also apply to individual lines.