Regex Tester
Test a regular expression against sample text, with live match highlighting and capture groups.
//g
Matches2 found
Contact alice@example.com or bob@test.org for details.
Capture groups (first match)
$1: alice
$2: example
Test a regular expression against sample text with live match highlighting and capture groups. Toggle flags and watch results update instantly.
How to use Regex Tester
- Enter your regex pattern.
- Toggle flags (global, ignore-case, multiline, dotall).
- Type the test text.
- See matches highlighted and capture groups listed.
Frequently asked questions
Which regex flavor is used?
JavaScript's built-in regular-expression engine, so patterns behave exactly as they would in JavaScript code.
What do the flags do?
g finds all matches, i ignores case, m makes ^ and $ match line starts and ends, and s lets the dot match newlines.
Is my pattern or text uploaded?
No. Everything is evaluated locally in your browser.
Related tools