ComfyUI Node
Text Transform
A ComfyUI node in Kinburg-Nodes/util with 8 inputs and 3 outputs.
Text Transform
- text
- count
- error
◄text►
◄operationreplace►
◄pattern►
◄replacement►
◄ignorecasefalse►
◄multilinefalse►
◄dotallfalse►
◄join_with
►
CategoryKinburg-Nodes/util
Inputs (8)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | The input text (type here or wire a STRING in). | |
| operation | COMBO | replace | What to do. replace = literal; regex_* = pattern is a regular expression; strip/collapse/case need no pattern. |
| pattern | STRING | Search text (literal for 'replace'; a regex for the regex_* ops). For 'strip', the exact characters to trim (empty = whitespace). | |
| replacement | STRING | Replacement text for replace / regex_replace. In regex_replace you may reference groups as \1, \2, … | |
| ignorecaseopt | BOOLEAN | false | Regex ops: case-insensitive matching (re.IGNORECASE). |
| multilineopt | BOOLEAN | false | Regex ops: ^ and $ match at line boundaries (re.MULTILINE). |
| dotallopt | BOOLEAN | false | Regex ops: '.' also matches newlines (re.DOTALL). |
| join_withopt | STRING | regex_findall: string inserted between matches. Default is a newline. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |
| count | INT | — |
| error | STRING | — |