Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Golang

`
^(?:[a-zA-Z0-9])([-_0-9a-zA-Z]+(\.[-_0-9a-zA-Z]+)*|^\"([\001-\010\013\014\016-\037!#-\[\]-\177]|\\[\001-011\013\014\016-\177])*\")@(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,6}\.?$
`

Description

email validation based on the restrictions for entering email adresses into a mongo db email field.

Submitted by levire.com - 5 years ago