ComfyUI Node
Text Replace (Legacy)
A ComfyUI node in DebugPadawan/Text with 4 inputs and 3 outputs.
Text Replace (Legacy)
- text
- matches
- found
◄textMy phone is 123-456-7890►
◄pattern(\d{3})-(\d{3}-\d{4})►
◄replace(\1) \2►
◄flagsNone►
CategoryDebugPadawan/Text
Inputs (4)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | My phone is 123-456-7890 | — |
| pattern | STRING | (\d{3})-(\d{3}-\d{4}) | — |
| replace | STRING | (\1) \2 | — |
| flagsopt | COMBO | None | 4 options: None, IGNORECASE, MULTILINE, DOTALL |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| matches | LIST | — |
| found | BOOLEAN | — |