ComfyUI Node
LC Text Replace ✂️
Text find/replace with 1–20 sequential pairs. Raise entrycount to add rows; lower it to remove them. Empty find entries are skipped. Optional regex.
LC Text Replace ✂️
- text
◄text—►
◄entrycount1►
◄use_regexfalse►
◄count0►
◄find_1►
◄replace_1►
◄find_2►
◄replace_2►
◄find_3►
◄replace_3►
◄find_4►
◄replace_4►
◄find_5►
◄replace_5►
◄find_6►
◄replace_6►
◄find_7►
◄replace_7►
◄find_8►
◄replace_8►
◄find_9►
◄replace_9►
◄find_10►
◄replace_10►
◄find_11►
◄replace_11►
◄find_12►
◄replace_12►
◄find_13►
◄replace_13►
◄find_14►
◄replace_14►
◄find_15►
◄replace_15►
◄find_16►
◄replace_16►
◄find_17►
◄replace_17►
◄find_18►
◄replace_18►
◄find_19►
◄replace_19►
◄find_20►
◄replace_20►
CategoryLC123/utils
Inputs (44)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | Source text to transform. | |
| entrycount | INT | 11–20 | Number of find/replace pairs to show and apply. |
| use_regex | BOOLEAN | false | Treat find as a regular expression. |
| count | INT | 00–99999 | Max replacements per pair. 0 = replace all. |
| find_1opt | STRING | Find string #1 (skipped if empty). | |
| replace_1opt | STRING | Replacement for find #1. | |
| find_2opt | STRING | Find string #2 (skipped if empty). | |
| replace_2opt | STRING | Replacement for find #2. | |
| find_3opt | STRING | Find string #3 (skipped if empty). | |
| replace_3opt | STRING | Replacement for find #3. | |
| find_4opt | STRING | Find string #4 (skipped if empty). | |
| replace_4opt | STRING | Replacement for find #4. | |
| find_5opt | STRING | Find string #5 (skipped if empty). | |
| replace_5opt | STRING | Replacement for find #5. | |
| find_6opt | STRING | Find string #6 (skipped if empty). | |
| replace_6opt | STRING | Replacement for find #6. | |
| find_7opt | STRING | Find string #7 (skipped if empty). | |
| replace_7opt | STRING | Replacement for find #7. | |
| find_8opt | STRING | Find string #8 (skipped if empty). | |
| replace_8opt | STRING | Replacement for find #8. | |
| find_9opt | STRING | Find string #9 (skipped if empty). | |
| replace_9opt | STRING | Replacement for find #9. | |
| find_10opt | STRING | Find string #10 (skipped if empty). | |
| replace_10opt | STRING | Replacement for find #10. | |
| find_11opt | STRING | Find string #11 (skipped if empty). | |
| replace_11opt | STRING | Replacement for find #11. | |
| find_12opt | STRING | Find string #12 (skipped if empty). | |
| replace_12opt | STRING | Replacement for find #12. | |
| find_13opt | STRING | Find string #13 (skipped if empty). | |
| replace_13opt | STRING | Replacement for find #13. | |
| find_14opt | STRING | Find string #14 (skipped if empty). | |
| replace_14opt | STRING | Replacement for find #14. | |
| find_15opt | STRING | Find string #15 (skipped if empty). | |
| replace_15opt | STRING | Replacement for find #15. | |
| find_16opt | STRING | Find string #16 (skipped if empty). | |
| replace_16opt | STRING | Replacement for find #16. | |
| find_17opt | STRING | Find string #17 (skipped if empty). | |
| replace_17opt | STRING | Replacement for find #17. | |
| find_18opt | STRING | Find string #18 (skipped if empty). | |
| replace_18opt | STRING | Replacement for find #18. | |
| find_19opt | STRING | Find string #19 (skipped if empty). | |
| replace_19opt | STRING | Replacement for find #19. | |
| find_20opt | STRING | Find string #20 (skipped if empty). | |
| replace_20opt | STRING | Replacement for find #20. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| text | STRING | — |