Regular Expressions 101

Community Patterns

1...45678...902

Community Library Entry

0

Regular Expression
ECMAScript (JavaScript)

/
^\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 - 4 years ago