dsh-regex
Run the following command in DeepSeek Harness:
dsh plugin install uckkk/dsh-regex
Paste the following prompt into your AI chat to install this plugin:
Run dsh plugin install uckkk/dsh-regex in DeepSeek Harness to install this plugin; the full source code is available at https://github.com/uckkk/dsh-regex .
About this plugin
The most frustrating part of regex work is often not crafting the pattern itself, but repeatedly wanting to see where it matches and how groups split without leaving your editor context. dsh-regex brings validation right into the conversation: no browser tab, no temporary dev server. Tweak the expression, see match positions and captured groups immediately, and keep iterating without losing momentum.
Built with pure Node and no extra runtime dependencies, the plugin registers three tools. regex_test displays match positions and capture groups so you can confirm exact expression behavior. regex_replace performs substitution with safe handling of special characters, preventing escape sequences from being misread as literals. regex_escape sanitizes user-supplied strings by escaping all regex metacharacters in one step, making it safe to splice them into larger patterns.
Ideal for developers who regularly sanitize user input, build text-template replacement logic, or debug complex regex and want a fast feedback loop. No additional toolchain required; once installed, the tools are callable directly in-session.
Use Cases
- Inspect match positions and capture groups while debugging complex patterns
- Perform safe regex-based substitution on user-supplied text
- Escape metacharacters in user input before composing larger expressions
Best For
- Developers who routinely sanitize input and perform text replacement
- Engineers who want a fast feedback loop while debugging regex
- Solo developers who prefer validating patterns in-session without switching tools
Related Plugins
A service-oriented sidebar framework for DSH, offering a full workbench with file explorer, embedded browser, real terminal, Git panel, and extensible plugin services.
A beautiful, practical Claude Code-style TUI plugin with pixel whale top bar, flowing glow title, real-time status line, streaming thought expansion, time rewind, context progress bar and TPS gauge — zero core changes.
The plugin market for DeepSeek Harness: browse/search/one-click install community plugins and themes, with updates, backup/restore, hot disable, diagnostics, and AI fix.
A persistent whale widget on the DSH web UI that shows DeepSeek balance, today's usage, and per-turn cost, with drag-and-snap and sound effects.