Regex Tester
Write a regular expression and see every match highlighted live in your test text, with capture groups listed below. Uses JavaScript regex syntax — the same as your browser and Node.js.
//g
Highlighted · 2 matches
Contact us at info@example.com or sales@toolkit.pk for details.
| # | Match | Index | Groups |
|---|---|---|---|
| 1 | info@example.com | 14 | — |
| 2 | sales@toolkit.pk | 34 | — |
How to use
- Type your pattern and pick flags (g, i, m…).
- Paste test text — matches highlight instantly.
- Inspect the match list and capture groups below.
Frequently asked questions
JavaScript (ECMAScript) regex — the flavor used in browsers and Node.js. Most patterns also work in Python and PCRE with minor differences.
The pattern is compiled live, so syntax errors (like an unclosed bracket) are shown as you type until the pattern is valid.