dsh-tool-regex
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.
Related Plugins
Free web search plugin for DeepSeek Harness with web search, X search, and page fetch; no signup or API key required, with automatic multi-engine failover.
AnySearch-powered web and vertical search plugin for DeepSeek Harness, offering real-time search, cleaned URL content, concurrent batch search via native web_search/web_fetch, no API key required.
Pixel-perfect webpage clone tool that uses an agent harness to turn any webpage into a scored, full-page React replica.
A bilingual cost-tracking plugin for DeepSeek Harness with session/daily cost, budget, official & custom provider balance, coding plan quotas, peak/off-peak pricing alerts, and history stats.