ComfyUI Node
text_filter
文本过滤预设说明 None:不过滤,返回原始文本。 @text@:提取@符号包裹的文本。 @text:提取@符号后的所有文本。 text @:提取@符号前的所有文本。 "text":提取双引号包裹的文本。 'text':提取单引号包裹的文本。 (text):提取小括号包裹的文本。 Custom:使用自定义过滤规则,例如: [text] :括号内的文本都会被提取并返回。 [text :括号后面的文本都会被提取并返回。 text]:括号前面的文本都会被提取并返回。
text_filter
- 调度文本
- Matched_list
◄text_input►
◄filter_ruleNone►
◄custom_rule►
◄current_frame0►
◄match_allfalse►
◄reverse_filterfalse►
CategoryApt_Preset/prompt
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| text_input | STRING | — | |
| filter_rule | COMBO | None | 9 options: None, custom, @text@, @text, text @, "text", +3 |
| custom_rule | STRING | — | |
| current_frame | INT | 00–18446744073709550000 | — |
| match_allopt | BOOLEAN | false | — |
| reverse_filteropt | BOOLEAN | false | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| 调度文本 | STRING | — |
| Matched_list | LIST | — |