RRegexBuilder

Testeur d'expressions régulières

Saisissez une expression régulière, saisissez du texte de test — voyez chaque correspondance en direct.

Bibliothèque de motifs
Correspondances 2 correspondances
Explication
  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);