Monthly Archives: March 2011

Email address validation in java using regexp

One would think validating an email address is an easy task. Turns out however that is not that trivial, the grammar is quite complex. While many people use regexp to validate email addresses, most of them are way to simple to be able to correctly validate according to the grammar (does it allow + in [...]