Regex Tester
Test a regular expression against your own text, with matches highlighted live as you type.
Last updated
0Matches
—
No capture groups in this pattern, or no matches yet.
About this tool
This tester runs your pattern using JavaScript's native RegExp engine, so behavior matches exactly what you'd get in browser JavaScript or Node.js — flavors like PCRE (used in PHP or many online tools) can differ slightly in edge cases. Common flags: g finds all matches instead of stopping at the first, i ignores case, m makes ^ and $ match line boundaries instead of just the start/end of the whole string, and s lets . match newlines.
Everything runs locally in your browser — the pattern and text you enter are never sent anywhere.