Nodes/comfyui-AGSoft/AGSoft Text Replace
ComfyUI Node

AGSoft Text Replace

A node for performing multiple find-and-replace operations on a single text string. You can define up to three different search and replace pairs, with options for case sensitivity and whole-word matching. Нода для выполнения нескольких операций поиска и замены в одной текстовой строке. Вы можете определить до трех разных пар поиска и замены с опциями чувствительности к регистру и соответствия целым словам.

By Art-xmaster·Created 11 months ago·Updated 22 days ago· 20
AGSoft Text Replace
    • STRING
    text
    find1
    replace1
    case_sensitive1true
    whole_word1false
    find2
    replace2
    case_sensitive2true
    whole_word2false
    find3
    replace3
    case_sensitive3true
    whole_word3false
    CategoryAGSoft/Text

    Inputs (13)

    NameTypeDefaultDescription
    textSTRINGThe original text in which to perform replacements. Исходный текст, в котором будут выполняться замены.
    find1STRINGThe substring to find for the first replacement. Подстрока, которую нужно найти для первой замены.
    replace1STRINGThe string to replace the first found substring with. Строка, на которую будет заменена первая найденная подстрока.
    case_sensitive1BOOLEANtrueWhether the first search is case-sensitive. Учитывать ли регистр при первом поиске.
    whole_word1BOOLEANfalseWhether the first search matches whole words only. Соответствует ли первому поиску только целые слова.
    find2STRINGThe substring to find for the second replacement. Подстрока, которую нужно найти для второй замены.
    replace2STRINGThe string to replace the second found substring with. Строка, на которую будет заменена вторая найденная подстрока.
    case_sensitive2BOOLEANtrueWhether the second search is case-sensitive. Учитывать ли регистр при втором поиске.
    whole_word2BOOLEANfalseWhether the second search matches whole words only. Соответствует ли второму поиску только целые слова.
    find3STRINGThe substring to find for the third replacement. Подстрока, которую нужно найти для третьей замены.
    replace3STRINGThe string to replace the third found substring with. Строка, на которую будет заменена третья найденная подстрока.
    case_sensitive3BOOLEANtrueWhether the third search is case-sensitive. Учитывать ли регистр при третьем поиске.
    whole_word3BOOLEANfalseWhether the third search matches whole words only. Соответствует ли третьему поиску только целые слова.

    Outputs (1)

    NameTypeDescription
    STRINGSTRING