ComfyUI Node
Regex Editor
Uses Regex to find, match, or modify text. Returns matches if no replacement is set, otherwise, replaces matches or non-matches as specified.
Regex Editor
- match
◄text_in—►
◄regex_pattern►
◄pattern_pickercustom►
◄replace_match—►
◄replace_non_match—►
CategoryiTools
Inputs (5)
| Name | Type | Default | Description |
|---|---|---|---|
| text_in | STRING | — | |
| regex_pattern | STRING | — | |
| pattern_picker | COMBO | custom | 27 options: custom, contains_hello, cat_or_dog, starts_with_abc, ends_with_xyz, any_character, +21 |
| replace_match | STRING | — | |
| replace_non_match | STRING | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| match | STRING | — |