Steven D'Aprano
7/14/2015 2:48:00 AM
On Tue, 14 Jul 2015 08:13 am, Dr J R Stockton wrote:
> One can check for an attempted E-mail address. From memory, check for
> yourself, all are of the form
> something only-@ something dot something
> and anything else _must_ be wrong.
Local email addresses don't even require a @ sign, so if your app is on an
intranet you might have valid addresses like
support
helpdesk
but let's assume you're on the internet so there must be at least one @.
Yes, I said *at least one*, not exactly one.
Does there need to be a dot after the @ sign? NO no no no.
user@com
user@localserver
user@[IPv6:2001:db8::1]
are all syntactically valid email addresses. Now that there are a whole lot
more top level domains possible than just .com and .org, you could have:
fred@accountants
1234567@international
--
Steven