Re: Email Verfication Regular Expression - Mailing list pgsql-general

From Bruno Wolff III
Subject Re: Email Verfication Regular Expression
Date
Msg-id 20050907205211.GA10493@wolff.to
Whole thread Raw
In response to Re: Email Verfication Regular Expression  (Steve Atkins <steve@blighty.com>)
Responses Re: Email Verfication Regular Expression
List pgsql-general
On Wed, Sep 07, 2005 at 12:21:45 -0700,
  Steve Atkins <steve@blighty.com> wrote:
>
>
/^[^@]*@(?:[^@]*\.)?[a-z0-9-_]+\.(?:a[defgilmnoqrstuwz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvxyz]|d[ejkmoz]|e[ceghrst]|f[ijkmorx]|g[abdefhilmnpqrstuwy]|h[kmnrtu]|i[delnoqrst]|j[mop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrtwy]|qa|r[eouw]|s[abcdeghijklmnortvyz]|t[cdfghjkmnoprtvwz]|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw]|edu|com|net|org|gov|mil|info|biz|coop|museum|aero|name|pro)$/
>
> This'll exclude email addresses like tv@tv, but the owners of such are used
> to their being rejected, and it saves you from a lot of the usual miskeyed
> addresses.

Hard coding the top level domains seems like a bad idea. xxx might still get
added. It also doesn't take into account there are non-icann roots that
include other tlds.

pgsql-general by date:

Previous
From: Steve Atkins
Date:
Subject: Re: Email Verfication Regular Expression
Next
From: merlyn@stonehenge.com (Randal L. Schwartz)
Date:
Subject: Re: Email Verfication Regular Expression