ComfyUI Node
Advanced Text Filter
Filters, extracts, replaces, or cleans text for prompt and LLM-output workflows.
Advanced Text Filter
- external_text
- processed_text (Target)
- remaining_text
◄text►
◄concat_mode▾►
◄operation▾►
◄start_text►
◄end_text►
◄optional_text_input►
◄replace_with_text►
◄use_regexfalse►
◄case_conversion▾►
◄if_not_foundreturn original text►
◄replacement_rules►
CategoryComfyUI Text Processor
Inputs (12)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — | |
| concat_mode | COMBO | 3 options: disabled, prepend_external_text, append_external_text | |
| operation | COMBO | 17 options: find and remove (use optional_text), find and replace (use optional_text, replace_with_text), find all (extract) (use optional_text), batch replace (use replacement_rules), extract between, remove between, +11 | |
| start_text | STRING | — | |
| end_text | STRING | — | |
| optional_text_input | STRING | — | |
| replace_with_text | STRING | — | |
| use_regex | BOOLEAN | false | — |
| case_conversion | COMBO | 3 options: disabled, to UPPERCASE, to lowercase | |
| if_not_found | COMBO | return original text | 3 options: return original text, return empty string, trigger error |
| external_textopt | * | — | |
| replacement_rulesopt | STRING | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| processed_text (Target) | STRING | Processed target text produced by the selected operation. |
| remaining_text | STRING | Remaining text or extracted match context, depending on the selected operation. |