Nodes/digit-comfyui/DIGIT Caption Find & Replace
ComfyUI Node

DIGIT Caption Find & Replace

Find and replace text across all .txt caption files in a folder.

By thedepartmentofexternalservices·Created 6 months ago·Updated 6 days ago· 0
DIGIT Caption Find & Replace
    • log
    • modified_count
    caption_folder
    find_text
    replace_text
    case_sensitivetrue
    dry_runtrue
    prefix_text
    suffix_text
    CategoryDIGIT

    Inputs (7)

    NameTypeDefaultDescription
    caption_folderSTRINGPath to folder containing .txt caption files.
    find_textSTRINGText to search for in captions.
    replace_textSTRINGReplacement text. Leave empty to delete the found text.
    case_sensitiveBOOLEANtrueCase-sensitive matching.
    dry_runBOOLEANtruePreview changes without writing files. Turn off to apply.
    prefix_textoptSTRINGText to prepend to ALL captions (applied after find/replace). Leave empty to skip.
    suffix_textoptSTRINGText to append to ALL captions (applied after find/replace). Leave empty to skip.

    Outputs (2)

    NameTypeDescription
    logSTRING
    modified_countINT