AI Agent Hub
Back to plugins
🧰

dsh-tool-regex

Web Tools Updated 2026.08.25

Run the following command in DeepSeek Harness:

dsh plugin install omdsh-dev/dsh-tool-regex

Paste the following prompt into your AI chat to install this plugin:

In DeepSeek Harness, you can install this plugin via the command `dsh plugin install omdsh-dev/dsh-tool-regex`, with the source code available at https://github.com/omdsh-dev/dsh-tool-regex.

About this plugin

In development and data processing, regex is a powerful text tool, but models or developers often face risks of errors and performance overhead when validating, matching, or replacing. This plugin aims to provide a deterministic, zero-dependency solution, avoiding the high error rate of 'mental calculation' for regex and replacing the cumbersome process of running scripts via external processes. It not only handles basic testing and extraction but also makes regex patterns readable and verifiable through its static explanation capability.

Its core abilities include four actions: test matching, finding all capture groups and named groups, safe replacement (supporting $ semantics), and unique static explanation—only parsing the pattern structure without executing matches, thus immunizing against ReDoS attacks. The security model employs multiple defense layers, such as worker hard timeouts, input length limits, and resource caps, ensuring stable operation even against malicious patterns.

This plugin is suitable for developers, AI application integrations, and regex operations in data pipelines that frequently process text. Whether validating user-provided patterns, extracting fields from logs, or performing safe text replacements, it offers a reliable and efficient tool, especially recommended for scenarios emphasizing security and performance.

Use Cases

  • AI models validating and explaining user-provided regex patterns.
  • Extracting specific fields from log or text data.
  • Performing safe text replacements to prevent ReDoS attacks.

Best For

  • Developers working with regex expressions.
  • Text processing applications integrating AI features.
  • Engineers involved in data cleaning and extraction tasks.