Regular Expressions 101

Practice email validation

Open Workspace
  • JavaScript
  • Match
0

Regular Expression

/
^\w+((-|\.|_)\w+)*\w*@\w+(-\w)?(\w*)?\.\w{2,3}(\.\w{2,3})?$
/
gim

Description

Solves the practice problem from https://www.sitepoint.com/learn-regex/

Submitted by Nhi Mai-Do