Hayat ToolKit

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.

#MatchIndexGroups
1info@example.com14
2sales@toolkit.pk34

How to use

  1. Type your pattern and pick flags (g, i, m…).
  2. Paste test text — matches highlight instantly.
  3. 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.

Help us improve Regex Tester

Found a bug or have a suggestion? Let us know!

Related tools