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 - 9 months ago