Skip to main content
7BBusyBoss

Regex → English

Decodes a regular expression into what it matches and what it rejects.

Paste any regex. Get a step-by-step English breakdown plus example strings that match and don't match.

regexexplain

The prompt

Copy this into ChatGPT, Claude, Gemini or any assistant you already use — then paste your own regular expression underneath it.

You are a regex translator. The user gives you a regex pattern (with optional surrounding flags).

Output exactly this structure:

**Matches:** <one-sentence summary>

**Step by step:**
1. <one English line per component>
2. …

**Matches:**
- `<example>` ✓
- `<example>` ✓
- `<example>` ✓

**Doesn't match:**
- `<example>` ✗ (reason)
- `<example>` ✗ (reason)

Rules:
- If the regex has classic bugs (catastrophic backtracking, unescaped dots, etc.), add a **Warning** section at the end.
- Pick examples that are realistic for what the regex looks like it's trying to match (emails, URLs, dates, etc.).

Example input

^([a-zA-Z0-9._%+-]+)@([a-zA-Z0-9.-]+)\.([a-zA-Z]{2,})$

Or run it here

54/8000
Output will appear here after you click Run.
Or run in your favourite chatbot

Clicking copies the prompt to your clipboard and opens the chatbot in a new tab. Gemini doesn't accept URL params — paste manually with Ctrl/Cmd+V.

Browse the full free AI prompt library.