Nodes/comfyui-AGSoft/AGSoft Text Split
ComfyUI Node

AGSoft Text Split

Splits a single input text string into multiple parts based on a configurable delimiter. Creates fixed number of outputs (string_1, string_2, etc.) up to number_of_outputs. Option to start splitting from a specific delimiter number (1-based index). Useful for processing individual segments of text in loops or with ForEach nodes. --- Разбивает одну входную текстовую строку на несколько частей по настраиваемому разделителю. Создает фиксированное количество выходов (string_1, string_2 и т.д.) до number_of_outputs. Возможность начать разбивку с определенного номера разделителя (индексация с 1). Полезна для обработки отдельных сегментов текста в циклах или с помощью нод ForEach.

By Art-xmaster·Created 11 months ago·Updated 22 days ago· 20
AGSoft Text Split
    • string_1
    • string_2
    • string_3
    • string_4
    • string_5
    • string_6
    • string_7
    • string_8
    • string_9
    • string_10
    • string_11
    • string_12
    • string_13
    • string_14
    • string_15
    • string_16
    • string_17
    • string_18
    • string_19
    • string_20
    • string_21
    • string_22
    • string_23
    • string_24
    • string_25
    • string_26
    • string_27
    • string_28
    • string_29
    • string_30
    • string_31
    • string_32
    • string_33
    • string_34
    • string_35
    • string_36
    • string_37
    • string_38
    • string_39
    • string_40
    • string_41
    • string_42
    • string_43
    • string_44
    • string_45
    • string_46
    • string_47
    • string_48
    • string_49
    • string_50
    text
    delimiterSpace
    custom_delimiter
    clean_whitespacetrue
    ignore_empty_stringstrue
    number_of_outputs3
    start_from_index1
    CategoryAGSoft/Text

    Inputs (7)

    NameTypeDefaultDescription
    textSTRINGThe text to be split into parts. / Текст, который будет разбит на части.
    delimiterCOMBOSpaceThe separator used to split the text. Choose from presets or 'custom'. Presets: - 'custom' : Enter your own delimiter in the next field. - ',' : Comma separator. - '.' : Period separator. - 'New Line' : Splits by line breaks (\n). - 'Space' : Splits by single space character. - ';' : Semicolon separator. - '|' : Vertical bar separator. - ' - ' : Dash with spaces. - ' | ' : Pipe with spaces. - ' :: ' : Double colon with spaces. - ' >>> ' : Triple greater-than with spaces. - ' • ' : Bullet point with spaces. - ' — ' : Em dash with spaces. - ' ... ' : Ellipsis with spaces. / Разделитель, используемый для разбиения текста. Выберите из предустановленных вариантов или 'custom'. Предустановленные значения: - 'custom' : Введите свой собственный разделитель в следующем поле. - ',' : Запятая. - '.' : Точка. - 'New Line' : Разбивает по переносам строк (\n). - 'Space' : Разбивает по одиночному пробелу. - ';' : Точка с запятой. - '|' : Вертикальная черта. - ' - ' : Дефис с пробелами. - ' | ' : Пайп с пробелами. - ' :: ' : Двойное двоеточие с пробелами. - ' >>> ' : Три знака больше с пробелами. - ' • ' : Эмодзи-точка с пробелами. - ' — ' : Длинное тире с пробелами. - ' ... ' : Многоточие с пробелами.
    custom_delimiterSTRING Enter a custom delimiter if 'custom' is selected above. Ignored otherwise. Example: ' | ', '---', or even an emoji like '⭐'. / Введите пользовательский разделитель, если выше выбрано 'custom'. Игнорируется в противном случае. Пример: ' | ', '---', или даже эмодзи, например '⭐'.
    clean_whitespaceBOOLEANtrueIf true, removes leading and trailing whitespace from each resulting part before output. / Если установлено, удаляет начальные и конечные пробелы из каждой полученной части перед выводом.
    ignore_empty_stringsBOOLEANtrueIf true, empty strings (or strings that become empty after cleaning whitespace) will be ignored and not included in the final outputs. / Если установлено, пустые строки (или строки, которые становятся пустыми после очистки пробелов) будут проигнорированы и не будут включены в конечные выходы.
    number_of_outputsINT31–50How many text outputs to create. Each output will be named string_1, string_2, etc. Example: number_of_outputs=3 → creates string_1, string_2, string_3. / Сколько текстовых выходов создать. Каждый выход будет называться string_1, string_2 и т.д. Пример: number_of_outputs=3 → создаются string_1, string_2, string_3.
    start_from_indexINT11–1000Start splitting from this delimiter number (1-based index). Example: text='111 222 333 777 999 888', start_from_index=4 → parts=['777', '999', '888'] If the index is larger than the number of parts, all outputs will be empty. / Начинать разбивку с этого номера разделителя (индексация с 1). Пример: text='111 222 333 777 999 888', start_from_index=4 → parts=['777', '999', '888'] Если индекс больше количества частей, все выходы будут пустыми.

    Outputs (50)

    NameTypeDescription
    string_1STRING
    string_2STRING
    string_3STRING
    string_4STRING
    string_5STRING
    string_6STRING
    string_7STRING
    string_8STRING
    string_9STRING
    string_10STRING
    string_11STRING
    string_12STRING
    string_13STRING
    string_14STRING
    string_15STRING
    string_16STRING
    string_17STRING
    string_18STRING
    string_19STRING
    string_20STRING
    string_21STRING
    string_22STRING
    string_23STRING
    string_24STRING
    string_25STRING
    string_26STRING
    string_27STRING
    string_28STRING
    string_29STRING
    string_30STRING
    string_31STRING
    string_32STRING
    string_33STRING
    string_34STRING
    string_35STRING
    string_36STRING
    string_37STRING
    string_38STRING
    string_39STRING
    string_40STRING
    string_41STRING
    string_42STRING
    string_43STRING
    string_44STRING
    string_45STRING
    string_46STRING
    string_47STRING
    string_48STRING
    string_49STRING
    string_50STRING