ComfyUI Node

text_filter

文本过滤预设说明 None:不过滤,返回原始文本。 @text@:提取@符号包裹的文本。 @text:提取@符号后的所有文本。 text @:提取@符号前的所有文本。 "text":提取双引号包裹的文本。 'text':提取单引号包裹的文本。 (text):提取小括号包裹的文本。 Custom:使用自定义过滤规则,例如: [text] :括号内的文本都会被提取并返回。 [text :括号后面的文本都会被提取并返回。 text]:括号前面的文本都会被提取并返回。

By cardenluo·Created 2 years ago·Updated 21 days ago· 309
text_filter
    • 调度文本
    • Matched_list
    text_input
    filter_ruleNone
    custom_rule
    current_frame0
    match_allfalse
    reverse_filterfalse
    CategoryApt_Preset/prompt

    Inputs (6)

    NameTypeDefaultDescription
    text_inputSTRING
    filter_ruleCOMBONone9 options: None, custom, @text@, @text, text @, "text", +3
    custom_ruleSTRING
    current_frameINT00–18446744073709550000
    match_alloptBOOLEANfalse
    reverse_filteroptBOOLEANfalse

    Outputs (2)

    NameTypeDescription
    调度文本STRING
    Matched_listLIST