Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>RegexForge — Regex WorkbenchNew to Visual Studio Code? Get it now.
RegexForge — Regex Workbench

RegexForge — Regex Workbench

Lx Studio

| (0) | Free
A local, key-free regex playground with real-time match highlighting, group view, replacement preview, flavor conversion, AI explain/generate with your own key, and an MCP server entry for AI agents.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

RegexForge — Regex Workbench

A local, key-free regex playground with real-time match highlighting, group view, replacement preview, flavor conversion, AI explain/generate with your own API key, and an MCP server entry so AI agents can drive regex testing.

"Your AI agent now speaks regex."


Features

  • Zero-key playground — test any regex against any text instantly. Highlighted matches, capture groups, named groups, replacement preview. Works offline, no key, no account.
  • Error detection — invalid regex gets a clear message; potential catastrophic backtracking patterns are flagged.
  • Flavor conversion — convert a JS regex to Python / Go / Rust (named groups, flags).
  • AI explain / generate (Pro) — with your own API key, explain what a regex does, or generate a regex from a plain-language description.
  • MCP server — expose test_regex, match_regex, explain_regex, generate_regex so Claude Desktop / Cursor / other AI agents can test and generate regex programmatically.
  • Local & private — your regex and test text never leave your machine except to the AI provider you configure.

Install

  1. Search the VS Code Marketplace for RegexForge (publisher LxStudio), or install the .vsix: code --install-extension regexforge-lx-1.0.0.vsix
  2. Open the playground with RegexForge: Open Regex Playground (Ctrl+Alt+R).

Usage

1. Playground (free, no key)

  • Type a pattern (e.g. (\d{3})-(\d{4})) and flags (e.g. g).
  • Type test text — matches are highlighted live with positions and capture groups below.
  • Type a replacement to preview replace() output.
  • Use the Python / Go / Rust buttons to convert the pattern to another flavor.
  • Invalid regex and potential catastrophic backtracking are flagged automatically.

2. AI explain / generate (Pro)

  • RegexForge: AI Explain Current Regex — select a regex in the editor, or click Explain (AI) in the playground.
  • RegexForge: AI Generate Regex — describe what it should match; AI returns a regex.

Configure your AI key (stored locally only):

Settings → RegexForge → aiProvider   (openai / claude / gemini)
Settings → RegexForge → aiApiKey     (your key)
Settings → RegexForge → aiBaseUrl    (optional custom endpoint)

Your regex and text are sent only to the endpoint you configure. Never to us.

3. MCP server

Run RegexForge: Write MCP Server Config to create .vscode/mcp.json, or add it manually.

For Claude Desktop (claude_desktop_config.json):

{
  "mcpServers": {
    "regexforge": {
      "command": "node",
      "args": ["/path/to/regexforge/mcp/server.js"]
    }
  }
}

For Cursor (~/.cursor/mcp.json): same structure with "regexforge".

Exposed tools:

Tool Purpose
test_regex Test a regex against text (valid + matches)
match_regex Return matches with capture groups
explain_regex Explain a regex (requires your AI key)
generate_regex Generate a regex from a description (requires your AI key)

Pro license

Free Pro ($9 one-time)
Playground (test, highlight, groups, replace) ✅ ✅
Flavor conversion ✅ ✅
MCP test_regex / match_regex ✅ ✅
AI explain / generate ❌ ✅
MCP explain_regex / generate_regex ❌ ✅

Upgrade: RegexForge: Upgrade to Pro ($9) — opens the Paddle checkout. Then RegexForge: Activate Pro License and paste your license key.

Privacy

  • RegexForge runs entirely locally. It never uploads your regex, test text, or any file content.
  • The only outbound call is to your own AI provider when you request an AI explain/generate (Pro). You choose the provider, endpoint, and key.
  • No telemetry, no analytics, no accounts.

See privacy-policy.html for the full policy.

License

Source code is MIT-licensed (see LICENSE.md). Free tier is fully usable; Pro features require a license key.

Changelog

See CHANGELOG.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft