Regex Tester & Explorer
Test JavaScript regular expressions with live match highlighting, numbered and named groups, a token-by-token explanation and replace mode.
Regex Tester & Explorer
- [a-zA-Z0-9._%+\-] — character set
- + — one or more
- [a-zA-Z0-9.\-] — character set
- + — one or more
- \. — literal dot
- [a-zA-Z] — any letter
- {2,} — 2 or more times
test@example.comhello.world@company.co.ukUpdated . Provided as is. Check the output before you rely on it in production.
How to use Regex Tester & Explorer
- 1
Enter a pattern
Type a regular expression without the surrounding slashes, or pick a common pattern such as Email, URL or IPv4.
- 2
Set flags
Toggle g, i, m, s and u. Keep g on to find every match.
- 3
Read the matches
Matches are highlighted in the test string, with capture groups listed for each match, and the pattern is explained in plain English.
- 4
Try replacements
Turn on Replace mode to preview substitutions with $1, $2 and $& references, then copy the matches.
Questions and answers
What is Regex Tester & Explorer?
Which regex flavor does it use?
Is my text uploaded?
For AI agents: how to call this tool
Machine-readable contract, endpoints and examples. Humans can ignore this section.
Best Path For Builders
Browser workflow
Runs instantly in the browser with private local processing and copy/export-ready output.
Browser Workflow
This tool is optimized for instant in-browser execution with local data handling. Run it here and copy/export the output directly.
/regex-explainer/
For automation planning, fetch the canonical contract at /api/tool/regex-explainer.json.