Live match · groups · flags

Regex tester

Write a regular expression and see matches highlighted live, with capture groups — all in your browser.

Examples
Matches2
Contact: ann@example.com or bob@neatly.dev for details.

Match details

  1. #1ann@example.comat 9groups: annexamplecom
  2. #2bob@neatly.devat 28groups: bobneatlydev

Frequently asked questions

Which regex flavour does this use?

JavaScript (ECMAScript) regular expressions, the same engine that runs in browsers and Node.js.

What do the g, i, m and s flags do?

g matches globally, i is case-insensitive, m makes ^ and $ match per line, and s lets the dot match newlines.

Is my test text sent anywhere?

No. Matching runs entirely in your browser.