ComfyUI Node
re.escape (Regex Escape)
re.escape(pattern) Escape special characters in pattern[s]. This is useful if you want to match an arbitrary literal string that may have regular expression metacharacters in it. As of Python 3.7, only characters that can change the meaning of a regular expression are escaped.
re.escape (Regex Escape)
- escaped
◄string►
◄string_in—►
Categoryovum/regex
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| string | STRING | The string with special regex characters to escape. Used if `string_in` is not connected. | |
| string_inopt | STRING | Input string or list of strings to escape. Overrides `string` widget if connected. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| escaped | STRING | — |