RRegexBuilder
Get RegexBuilder

Regex tester

Type a regex, type test text — see every match live.

Pattern library
Matches 2 matches
Explanation
  1. ^start of string / line
  2. [^\s@]character class
  3. +one or more of the previous
  4. @literal "@"
  5. [^\s@]character class
  6. +one or more of the previous
  7. \.literal dot
  8. [^\s@]character class
  9. {2,}quantifier
  10. $end of string / line

Pro toolkit

ProUpgrade to Pro to unlock — see plans below.
Saved patterns
Saved patterns are stored privately in this browser.
Results
Export as code
const re = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/igm;
const matches = str.match(re);