Re: Email Verfication Regular Expression
От | Bruno Wolff III |
---|---|
Тема | Re: Email Verfication Regular Expression |
Дата | |
Msg-id | 20050907205211.GA10493@wolff.to обсуждение исходный текст |
Ответ на | Re: Email Verfication Regular Expression (Steve Atkins <steve@blighty.com>) |
Ответы |
Re: Email Verfication Regular Expression
|
Список | 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 по дате отправления: