[151159] in North American Network Operators' Group

home help back first fref pref prev next nref lref last post

Re: Programmers with network engineering skills

daemon@ATHENA.MIT.EDU (Michael Thomas)
Mon Mar 12 17:44:21 2012

Date: Mon, 12 Mar 2012 14:42:52 -0700
From: Michael Thomas <mike@mtcc.com>
To: Owen DeLong <owen@delong.com>
In-Reply-To: <31CC8256-381A-4512-9628-8055D4B6A30A@delong.com>
Cc: nanog@nanog.org
Errors-To: nanog-bounces+nanog.discuss=bloom-picayune.mit.edu@nanog.org

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


home help back first fref pref prev next nref lref last post