Regex Tester
Test a regular expression against sample text and see matches highlighted live.
/
/
—
—
How to use this regex tester
Enter your pattern (without the surrounding slashes) and any flags you need — g for global (find all matches), i for case-insensitive, m for multiline. Matches are highlighted live in your test string as you type, and each match plus its capture groups is listed below.
JavaScript regex flavor
This tool uses the browser's native JavaScript regex engine, so behavior matches exactly what you'd get in Node.js or client-side JS — useful if you're validating input, writing a parser, or debugging a regex used in your app.