Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2021-04-03 05:18
Flavor·JavaScript

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

Description

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

Submitted by Nhi Mai-Do