> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# RegexMatch - ComfyUI Built-in Node Documentation

> Complete documentation for the RegexMatch node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/RegexMatch/en.md)

The RegexMatch node checks if a text string contains a match for a given regular expression pattern. It searches the input string and returns a simple yes/no result indicating whether the pattern was found anywhere in the text. You can adjust how the search works by enabling options like case-insensitive matching or multiline mode.

## Inputs

| Parameter          | Data Type | Required | Range | Description                                                          |
| ------------------ | --------- | -------- | ----- | -------------------------------------------------------------------- |
| `string`           | STRING    | Yes      | -     | The text string to search for matches                                |
| `regex_pattern`    | STRING    | Yes      | -     | The regular expression pattern to match against the string           |
| `case_insensitive` | BOOLEAN   | No       | -     | Whether to ignore case when matching (default: True)                 |
| `multiline`        | BOOLEAN   | No       | -     | Whether to enable multiline mode for regex matching (default: False) |
| `dotall`           | BOOLEAN   | No       | -     | Whether to enable dotall mode for regex matching (default: False)    |

## Outputs

| Output Name | Data Type | Description                                                                             |
| ----------- | --------- | --------------------------------------------------------------------------------------- |
| `matches`   | BOOLEAN   | Returns True if the regex pattern matches any part of the input string, False otherwise |

***

**Source fingerprint (SHA-256):** `4f0fa717bde7406e42d9a99599eab546690140166d2bb01bb4fde3c5d60e0397`
