Email Validation Validity

There are a lot of different ways to validate an email address input field. The easiest – and mostly correct – method is to use a regular expression. Two of the more complicated – and among the most incorrect – methods follow.

Jonasfound this in a custom-built web app at a customer site, and commented that it's emblematic of the quality of the whole codebase.