Nodes/ComfyUI Text Processor/Advanced Text Filter
ComfyUI Node

Advanced Text Filter

Filters, extracts, replaces, or cleans text for prompt and LLM-output workflows.

By rookiestar28·Created 9 months ago·Updated 2 months ago· 16
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)

NameTypeDefaultDescription
textSTRING
concat_modeCOMBO3 options: disabled, prepend_external_text, append_external_text
operationCOMBO17 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_textSTRING
end_textSTRING
optional_text_inputSTRING
replace_with_textSTRING
use_regexBOOLEANfalse
case_conversionCOMBO3 options: disabled, to UPPERCASE, to lowercase
if_not_foundCOMBOreturn original text3 options: return original text, return empty string, trigger error
external_textopt*
replacement_rulesoptSTRING

Outputs (2)

NameTypeDescription
processed_text (Target)STRINGProcessed target text produced by the selected operation.
remaining_textSTRINGRemaining text or extracted match context, depending on the selected operation.