Tag Archives: parsec

Properly validating e-mail addresses (or converting EBNF to Parsec)

Update: See the better code in the next post.
In recent times there have been several calls for websites to properly validate email addresses. Invariably, the compiled regex from Perl’s RFC822 is pasted up as The Way To Do It. The problem with this is (as the source code from the Perl module notes) is that [...]