nanog mailing list archives

Re: Programmers with network engineering skills


From: Michael Thomas <mike () mtcc com>
Date: Mon, 12 Mar 2012 14:42:52 -0700

On 03/12/2012 02:32 PM, Owen DeLong wrote:
Whenever I've built code to check someone's email address on a form, I always just looked for the following: 1. matches ^[^@]+@[A-Za-z0-0\-\.]+[A-Za-z]$ 2. The component to the right of the @ sign returns at least one A, AAAA, or MX record. If it passed those two checks, I figured that was about as good as I could do without resorting to one of the following: 1. An incomprehensible and unmaintainable regex as the one above 2. Actually attempting delivery to said address Owen

"'I know, I'll use a regular expression!' now you have two problems."

Mike


Current thread: