Regex processing
The Regex tab is a find-and-replace pipeline for chat text. Style what you see, or rewrite what gets stored and sent. If a model has a tic, you can delete the tic.
Two kinds of patterns
- Ephemeral: display only. The stored message is untouched; the pattern runs every time the message renders. The built-in dialogue and narration coloring works this way.
- Persistent: applied to the message text itself, permanently. What the pattern produces is what gets saved and sent to the model from then on.
Anatomy of a pattern
- Find: a JavaScript regular expression. Plain patterns get the
gandmflags; write/pattern/flagsto control flags yourself. - Replace: the substitution, with
$1-style capture groups. Ephemeral patterns may emit HTML for styling. - Affects: your messages, the AI's messages, or both.
- Trim out: shorthand for "replace with nothing".
The built-in styling
Five ephemeral patterns ship enabled and give chats their look: code blocks, inline code, bold emphasis, italic narration and colored "dialogue". Disable or restyle them freely; the colors follow your theme.
Things people build with it
- Delete a model's signature filler ("I cannot help but notice...") the moment it appears.
- Convert asterisk actions to proper italics, or the reverse, to match a card's style.
- Strip XML scaffolding a preset asks the model to emit but you never want to read.
- Color a specific character's dialogue in group chats.
Persistent patterns change your stored chat text. Test a new pattern as ephemeral first, then flip it to persistent once it behaves.
ScyllaChat