Find and Replace Pixaroma
Sits in a text wire and rewrites the text flowing through it, before it reaches whatever uses the prompt.
What it does
Drop this node between a text source (an LLM node, Show Text, Text Pixaroma, any STRING output) and the node that uses the text. It applies your find/replace rules top to bottom and passes the edited result on. The before/after box on the node previews the last text that ran through.
How to use
- Add one rule per edit: type what to find, and what to replace it with.
- Leave the replace side empty to DELETE the found text.
- Toggle a rule OFF to skip it without deleting it.
- Drag the ⋮⋮ handle to reorder. Rules apply top to bottom, each one seeing the previous rule's result.
The four toggles
- Aa Case
- Match upper/lowercase exactly. Off = ignore case (the default).
- Whole word
- Only match whole words, so
artdoes not hitartist. - .* Regex
- Treat Find as a search pattern (see below) instead of literal text.
- ✨ Tidy
- After the edits, collapse double spaces and fix stray or doubled commas.
Regex: the search-pattern mode
With Regex OFF, Find is literal: cat matches the exact letters. With Regex ON, Find becomes a pattern where some characters mean "any digit", "one or more", "either/or", and so on, so you can match things you can't type out literally.
Regex symbols worth knowing
.- any single character
\d- any digit (0-9)
\w- any letter, number or underscore
\s- any space
+- one or more of the thing before it
*- zero or more
?- optional (zero or one)
a|b- match a OR b
( )- a group you can reuse in Replace as
\1,\2… \.- a real dot (the backslash turns off a symbol's special meaning)
Regex examples
Text too small?
Right-click the node > Text size.
All text boxes: Bigger / Smaller / Reset changes ComfyUI's own setting (Settings > Appearance > Node Widget > Textarea widget font size). Every text box grows together, ComfyUI's own boxes too, in every workflow.
Only this node: Bigger / Smaller / Reset changes this node alone. It is saved in the workflow, so it travels with it.
Spell check
Turn it on in Settings > Comfy > Node Widget > Textarea widget spellcheck (or search the settings for spellcheck). It is off by default.
The text boxes of this node follow that setting, like ComfyUI's own boxes: a word the browser does not know gets a red wavy underline.
What you wire in
What comes out
\1, \2 (Python style), not $1. The node always runs the real Python regex, even for advanced patterns the on-node preview can't show perfectly.This is the help that comes with Pixaroma 1.4.251. Inside ComfyUI, select the node and click the orange ? above it to read the same help there.