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. Нода для выполнения нескольких операций поиска и замены в одной текстовой строке. Вы можете определить до трех разных пар поиска и замены с опциями чувствительности к регистру и соответствия целым словам.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | The original text in which to perform replacements. Исходный текст, в котором будут выполняться замены. | |
| find1 | STRING | The substring to find for the first replacement. Подстрока, которую нужно найти для первой замены. | |
| replace1 | STRING | The string to replace the first found substring with. Строка, на которую будет заменена первая найденная подстрока. | |
| case_sensitive1 | BOOLEAN | true | Whether the first search is case-sensitive. Учитывать ли регистр при первом поиске. |
| whole_word1 | BOOLEAN | false | Whether the first search matches whole words only. Соответствует ли первому поиску только целые слова. |
| find2 | STRING | The substring to find for the second replacement. Подстрока, которую нужно найти для второй замены. | |
| replace2 | STRING | The string to replace the second found substring with. Строка, на которую будет заменена вторая найденная подстрока. | |
| case_sensitive2 | BOOLEAN | true | Whether the second search is case-sensitive. Учитывать ли регистр при втором поиске. |
| whole_word2 | BOOLEAN | false | Whether the second search matches whole words only. Соответствует ли второму поиску только целые слова. |
| find3 | STRING | The substring to find for the third replacement. Подстрока, которую нужно найти для третьей замены. | |
| replace3 | STRING | The string to replace the third found substring with. Строка, на которую будет заменена третья найденная подстрока. | |
| case_sensitive3 | BOOLEAN | true | Whether the third search is case-sensitive. Учитывать ли регистр при третьем поиске. |
| whole_word3 | BOOLEAN | false | Whether the third search matches whole words only. Соответствует ли третьему поиску только целые слова. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| STRING | STRING | — |