ComfyUI Node
DIGIT Caption Find & Replace
Find and replace text across all .txt caption files in a folder.
DIGIT Caption Find & Replace
- log
- modified_count
◄caption_folder►
◄find_text►
◄replace_text►
◄case_sensitivetrue►
◄dry_runtrue►
◄prefix_text►
◄suffix_text►
CategoryDIGIT
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| caption_folder | STRING | Path to folder containing .txt caption files. | |
| find_text | STRING | Text to search for in captions. | |
| replace_text | STRING | Replacement text. Leave empty to delete the found text. | |
| case_sensitive | BOOLEAN | true | Case-sensitive matching. |
| dry_run | BOOLEAN | true | Preview changes without writing files. Turn off to apply. |
| prefix_textopt | STRING | Text to prepend to ALL captions (applied after find/replace). Leave empty to skip. | |
| suffix_textopt | STRING | Text to append to ALL captions (applied after find/replace). Leave empty to skip. |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| log | STRING | — |
| modified_count | INT | — |