TextSplitJoinByDelimiter
Slice and reformat a delimited text block
- list_str
- joined_str
The pack's own README credits this one to comfyui-mixlab-nodes rather than claiming it as an original idea - worth knowing if you've already got mixlab installed and are wondering whether you need both. Functionally, it's a text-processing utility: take a delimited block of text, pull out a controlled slice of it, and hand back both the individual pieces and a rejoined string.
What it does
Six inputs, and they break into two groups. The splitting side: text (your multiline source), split_delimiter (default comma), start_index (default 0 - where to begin, skipping anything before it), skip_every (default 0 - how many entries to skip between each one you keep, for thinning a long list), and max_count (default 10 - a hard cap on how many entries you end up with). The rejoining side is just join_delimiter (default comma), which controls how the kept entries get glued back together.
Two outputs: list_str, the individual pieces as a list, and joined_str, everything glued back into one string using join_delimiter. You get both at once - take whichever shape the rest of your workflow actually needs.
Where this earns its keep
The clearest use case is reformatting a big tag or prompt list - split a comma-separated tag dump, keep only every other entry, cap it at 10, and rejoin with newlines instead of commas, all in one node instead of hand-editing the text. It's also handy for pulling a fixed-size slice out of something bigger than you want: point start_index partway into a long list and max_count at how many you actually need, and you get exactly that window without editing the source text by hand each time. And because list_str comes out as an actual list, it can feed straight into anything else in this pack (or elsewhere) that expects list-typed input, rather than a string you'd have to parse again yourself.
Installing it
Ships with the SP-Nodes pack:
- ComfyUI Manager: search "SP-Nodes", install, restart.
- Manual:
cd ComfyUI/custom_nodes && git clone https://github.com/bananasss00/ComfyUI-SP-Nodes, restart ComfyUI.
No models, no heavy dependencies - plain string processing, same as the rest of the pack's text utilities.
Troubleshooting
If list_str comes back shorter than you expected, walk through start_index, skip_every and max_count together rather than assuming just one of them is at fault - they compound: a nonzero start_index trims from the front before skip_every thins what's left, and max_count then caps whatever survives both. Set skip_every back to 0 and start_index back to 0 first to confirm the raw split count matches what you expect, then reintroduce each setting one at a time. And if joined_str looks wrong even though list_str looks right, remember join_delimiter is entirely independent of split_delimiter - it's easy to assume the output will be glued back with the same character you split on, and this node deliberately doesn't do that.
Inputs (6)
| Name | Type | Default | Description |
|---|---|---|---|
| text | STRING | — | |
| split_delimiter | STRING | , | — |
| start_index | INT | 00–1000 | — |
| skip_every | INT | 00–10 | — |
| max_count | INT | 101–1000 | — |
| join_delimiter | STRING | , | — |
Outputs (2)
| Name | Type | Description |
|---|---|---|
| list_str | STRING | — |
| joined_str | STRING | — |