> For the complete documentation index, see [llms.txt](https://docs.flexy.bot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.flexy.bot/modules/scripting/steps/conditions/matches-regular-expression.md).

# Matches Regular Expression

**Introduction**

The "Matches Regular Expression" step checks whether a variable matches a specified regular expression and returns `Yes`if the match succeeds. This step is useful for validating that a variable's value conforms to a specific pattern.

**Configuration**

* **Variable**: The text variable to be checked.
* **Value**: The regular expression to compare against the variable.

**Outputs**

* **Result**: A boolean value (`Yes` or `No`) indicating whether the variable matches the specified regular expression.
