Pylons / colander

A serialization/deserialization/validation library for strings, mappings and lists.
https://docs.pylonsproject.org/projects/colander/en/latest/
Other
447 stars 145 forks source link

Email validator accepts bad email addresses. #82

Closed rkintzi closed 11 years ago

rkintzi commented 11 years ago

Examples of invalid addresses accepted by validator: ala@ma.kota..pl ala@ma-kota-.pl

Better regular expression: (?i)^[A-Z0-9._%+-]+@[A-Z0-9]+([.-][A-Z0-9]+)*.[A-Z]{2,4}$

amotl commented 11 years ago

Hey there,

funny enough, we stumbled across this topic today as well. Some colleagues (thanks Matthias and Stefano) provided these resources which might help in enhancing Colanders email validation regex even more:

Cheers, Andreas.

mcdonc commented 11 years ago

Closing due to Doug's fix.