implement domain regexp according to the specification http://tools.ietf.org/html/rfc1035
Merge pull request #992 from spape/master

Implement domain regexp according to the specification