Regex Whisperer · for VS Code, Cursor, VSCodium and Windsurf

Read any regex in plain English. Write one by describing it.

Select a pattern and get a summary, a token-by-token breakdown, the edge cases and strings that match and don’t. Or describe what you need and get the pattern in your flavor, with its examples run through the real JavaScript engine before you paste it.

A selected regex explained in plain English, with edge cases and examples

Why I built it

Regex is the canonical write-only code

Six months later I read my own pattern and had no idea what it did. And when I needed a new one, I lost twenty minutes on a website in another tab, pasting test strings by hand.

Both ends are easy for a language model. What I wanted was to do them without leaving the file. So Regex Whisperer does exactly two things, one key each: explain and build.

Ciro Cesar Maciel, who builds and maintains it

How it works

Two keys, two directions

1

Select

Select a regex in any file.

2

Explain

Cmd+Alt+R (Ctrl+Alt+R): summary, breakdown, edge cases, matches and non-matches.

3

Describe

Cmd+Alt+Shift+R and type what you need, in your words.

4

Paste

Get the pattern in your flavor, checked against its own examples in JavaScript.

See it in action

A validator nobody on the team wanted to touch, read back in plain English

One keystroke, and a real finding: the pattern happily accepts half-punctuated input like 123456.789-10. The line that went in, and part of what came out:

What went in

export const CPF = /^(?!(\d)\1{2}\.?\1{3}\.?\1{3}-?\1{2}$)\d{3}\.?\d{3}\.?\d{3}-?\d{2}$/;

What came out

Summary: matches Brazilian CPF numbers, formatted or not, while rejecting invalid CPFs made of identical digits.
Edge case: the separators are optional, so it matches partially formatted strings like 123456.789-10.
matches 123.456.789-10 · matches 12345678910 · no match 111.111.111-11
The explanation of a CPF regex

And then

Describe the format, get the pattern where the constant goes

Describe the timestamp a webhook sends, right in the file, and get the pattern with its examples.

What went in

ISO 8601 timestamps with optional milliseconds, ending in Z or an offset like -03:00
The Build a regex box over a webhook handler

And then

Checked, not just generated

In JavaScript, the extension compiles the pattern with new RegExp and runs it against every match and non-match the model proposed. A wrong regex shows up before it reaches your code.

The built regex with its examples checked locally

Everything in it

Both directions, in your editor

Explain and build

Most regex extensions only generate or only explain. This does both, one keybinding each.

Checked locally

JavaScript patterns run against the model’s own examples before you see them.

Seven flavors

JavaScript, PCRE, Python, Go, Java, Rust and .NET.

Edge cases named

What the pattern accepts that you did not mean, before it bites.

In your language

Explanations in English, Portuguese, Spanish or any other.

Insert at cursor

The bare pattern, ready for new RegExp, a config file or another language.

Your model

Any of the 350+ models on OpenRouter, pay per token, no subscription.

Nothing else leaves

Only the regex or your description goes out. No telemetry, no account with me.

Before you choose

How it compares

Regex Whisperer

Regex Previewer

Regexp Explain

regex101 (website)

Explains a regex in plain EnglishYesNoYesYes
Builds a regex from a descriptionYesNoNoNo
Tests against examplesPartial: run locally for JSYes: your textNoYes: your text
Seven flavorsYesPartialPartialYes
Inside the editor, one keyYesYesYesNo: browser tab

From each tool’s public listing. Something changed? Tell me at ciromaciel.click/contact.

Price

Free. No account, no trial, no nag screen.

Every feature is free. Where it uses AI, it uses your own OpenRouter key: you pick the model and pay the model, per token, with no subscription to me.

Free

$0

  • Explain and build, for good
  • Your OpenRouter key, any model, pay the model per token
  • No account with me, no telemetry
Install free

Questions

Before you install

Select the next regex you are afraid to touch.

All 11 extensions