Regular Expressions 101

Community Patterns

There does not seem to be anything here

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
(\S[^\.]*)(\.(\S*))?@(\S*)
/
ig

Description

Simple match for parts of an email address to get firstname, lastname and email domain. (Does not include validity check!)

Submitted by art-ist.cc - 9 years ago