AI Agent Hub
Back to plugins
🖥️

dsh-regex

Client Updated 2026.08.19

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