1 / 5
May 2008

Task 7 refers to RFC number 2822.

The RFC doesn't seem to say anything out requiring a TLD for the domain part of an e-mail address. A host could be using a DNS server serving internal TLDs.

I don't understand what part of the RFC disallows these:
val@val
val@val.a.a.a.a

Could someone please point out where these are disallowed or clarify what is actually expected for Task 7? I'd rather not write a regex for this RFC if the address syntax in the RFC isn't actually what is expected.

Thanks!

  • created

    May '08
  • last reply

    May '08
  • 4

    replies

  • 773

    views

  • 3

    users

  • 1

    link

Try to follow examples in this task.

Thank you for the reply.

The examples are not enough; I have written a regex which satisfies the examples but fails. This means I need more than the example to base my solution on. Must the address contain a known TLD? Which TLDs are valid? Should I support subdomains? This is a very ambiguous task.

-- Dion

1) Subdomains of any level are supported
2) Domain must be specified and must contains at least 2 chars
3) "." can be specified in left part of E-mail, but couldn't be first
4) Left part of e-mail should be non-empty