Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^(?!.*\.{2})[\w](?:[^\s@()<>,;:\\"\[\]]+[\w])?@[\w](?:[^_.@]*[^.-])?(?:\.[^.]+)*\.[a-z]{2,6}$
/
i

Description

This regex can check if the email format is valid.

Feels free to use it

Submitted by AkashiDom - 8 months ago