Regular Expressions 101

Community Patterns

1...34567...884

Email Format Check

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