Nodes/ComfyUI_LC123_nodes/LC Text Remove πŸ”ͺ
ComfyUI Node

LC Text Remove πŸ”ͺ

Remove substrings with 1–20 sequential finds (no replacement value). Whitespace-only finds are ignored so spaces are not stripped from the whole prompt. Leftover double spaces are collapsed after removals.

By lonecatone23Β·Created 27 days agoΒ·Updated about 17 hours agoΒ· 9
LC Text Remove πŸ”ͺ
    • text
    β—„textβ€”β–Ί
    β—„entrycount1β–Ί
    β—„use_regexfalseβ–Ί
    β—„count0β–Ί
    β—„find_1β–Ί
    β—„find_2β–Ί
    β—„find_3β–Ί
    β—„find_4β–Ί
    β—„find_5β–Ί
    β—„find_6β–Ί
    β—„find_7β–Ί
    β—„find_8β–Ί
    β—„find_9β–Ί
    β—„find_10β–Ί
    β—„find_11β–Ί
    β—„find_12β–Ί
    β—„find_13β–Ί
    β—„find_14β–Ί
    β—„find_15β–Ί
    β—„find_16β–Ί
    β—„find_17β–Ί
    β—„find_18β–Ί
    β—„find_19β–Ί
    β—„find_20β–Ί
    CategoryLC123/utils

    Inputs (24)

    NameTypeDefaultDescription
    textSTRINGSource text to transform.
    entrycountINT11–20Number of find rows to show and apply.
    use_regexBOOLEANfalseTreat find as a regular expression.
    countINT00–99999Max removals per find. 0 = remove all matches.
    find_1optSTRINGText #1 to remove (skipped if empty or only spaces).
    find_2optSTRINGText #2 to remove (skipped if empty or only spaces).
    find_3optSTRINGText #3 to remove (skipped if empty or only spaces).
    find_4optSTRINGText #4 to remove (skipped if empty or only spaces).
    find_5optSTRINGText #5 to remove (skipped if empty or only spaces).
    find_6optSTRINGText #6 to remove (skipped if empty or only spaces).
    find_7optSTRINGText #7 to remove (skipped if empty or only spaces).
    find_8optSTRINGText #8 to remove (skipped if empty or only spaces).
    find_9optSTRINGText #9 to remove (skipped if empty or only spaces).
    find_10optSTRINGText #10 to remove (skipped if empty or only spaces).
    find_11optSTRINGText #11 to remove (skipped if empty or only spaces).
    find_12optSTRINGText #12 to remove (skipped if empty or only spaces).
    find_13optSTRINGText #13 to remove (skipped if empty or only spaces).
    find_14optSTRINGText #14 to remove (skipped if empty or only spaces).
    find_15optSTRINGText #15 to remove (skipped if empty or only spaces).
    find_16optSTRINGText #16 to remove (skipped if empty or only spaces).
    find_17optSTRINGText #17 to remove (skipped if empty or only spaces).
    find_18optSTRINGText #18 to remove (skipped if empty or only spaces).
    find_19optSTRINGText #19 to remove (skipped if empty or only spaces).
    find_20optSTRINGText #20 to remove (skipped if empty or only spaces).

    Outputs (1)

    NameTypeDescription
    textSTRINGβ€”