Regex Tester
Build and debug JavaScript regular expressions interactively. Matches and capture groups are highlighted as you type. Toggle flags such as g, i, m, s, u, y to see how they affect results.
//g
2 matches
Reach me at [email protected] or [email protected] — replies welcome.
Match details
- #1 [12-33] "[email protected]"
- #2 [37-52] "[email protected]"
runtime
Browser-local execution
Inputs stay inside the current tab unless you copy, download or explicitly export.
memory
Session handoff
Magic Paste can pass input to a target tool through sessionStorage, never through the URL.
control
User-owned state
Favorites, recent tools and workflow history are local browser data you can clear from the browser.
smart handoff graph
session handoff readySuggested next moves
/text
Regex Visualizer
Explain JavaScript regex tokens, matches and named capture groups.
/text
.env Parser
Convert .env files to JSON or scrubbed .env.example templates.
/text
Markdown Preview
Preview Markdown and copy safe HTML for docs, changelogs and product notes.
/text
SQL Formatter
Format compact SQL queries with keyword casing, line breaks and copy output.
sponsor
Sponsor this toolFixed native slots for developer products. No third-party tracking, no popups, no layout shift.
01
How to use
- 01Type your pattern (without slashes) into the regex field.
- 02Toggle the flags you need (g, i, m, s, u, y).
- 03Type or paste your test text below — matches are highlighted live.
02
FAQ
- Which regex flavor does this use?
- JavaScript ECMAScript 2024 regex, which is what runs in Node.js and modern browsers. PCRE-only features such as lookbehind variable-length matching may differ.
- Why does my pattern not match anything?
- Common reasons: missing the g flag for multiple matches, special characters not being escaped, or anchors (^ and $) used without the m flag in multi-line text.
03
Related tools
- /text→Regex VisualizerExplain JavaScript regex tokens, matches and named capture groups.
- /text→.env ParserConvert .env files to JSON or scrubbed .env.example templates.
- /text→Markdown PreviewPreview Markdown and copy safe HTML for docs, changelogs and product notes.
- /text→SQL FormatterFormat compact SQL queries with keyword casing, line breaks and copy output.