Regex Tester
Try a pattern against a test string and see every match highlighted, with capture groups listed and invalid patterns explained in plain language.
Reach ada@example.com or grace@fixtdoc.com for details.
- Match 1 at index 6: ada@example.comGroup 1: adaGroup 2: example
- Match 2 at index 25: grace@fixtdoc.comGroup 1: graceGroup 2: fixtdoc
Everything runs in your browser. Your text is not uploaded for processing and never leaves this device.
Frequently asked questions
Do I need the g flag to see all matches?
No. The tester always walks the whole string and lists every match, with or without the global flag. The flag is still accepted, along with i, m, s, u, y, and d.
What are capture groups?
Parentheses in your pattern capture the text they match. Each match lists its groups in order, and named groups from (?<name>...) are listed by name as well.
Why does my pattern report an error?
The error box explains the problem in plain language: common causes are a missing closing bracket or parenthesis, a quantifier with nothing to repeat, or a backwards character range like z-a.