Regex Tester
pattern × text → matchesHighlight what a pattern matches, and list what each group captured.
Contact ada@example.com or grace@example.com for access.
capture groups
| # | at | match | groups |
|---|---|---|---|
| 1 | 8 | ada@example.com | $1 ada$2 example |
| 2 | 27 | grace@example.com | $1 grace$2 example |
About Regex Tester
Write a pattern, paste the text you expect it to match, and every match is highlighted as you type. The table below lists each match with its character offset and the contents of every capture group, numbered and named, which is the part that usually reveals why a pattern is nearly working.
The flags are toggles rather than something you type into the pattern: global, ignore case, multiline, dotall, unicode, and sticky, each with a note on what it changes. There is also a replacement field that previews the result of a substitution, supporting $1 for numbered groups and $<name> for named ones.
This uses your browser's own JavaScript regular expression engine, so what you see here is exactly what your code will do — the same syntax, the same quirks. Nothing is sent anywhere, so the text you are testing against can be real data.
Common questions
This page does the work itself, in this tab. Nothing you paste is sent to a server. Close the tab and no copy remains.