Domain Name Regex Rfc. Allows shortest top-level domains like ca and museum. Instantly share code notes and snippets.
The top level domain must be all alphabetic. This validates domains based on latest specifications RFCs 952 and 1123 dealing with hostnames and RFC 1035 dealing with domain name system requirements except that it only includes realistic fully-qualified domains. There should be a local part followed by the symbol and then the domain part.
RFC 2396 URI Generic Syntax August 1998 The resource is the conceptual mapping to an entity or set of entities not necessarily the entity which corresponds to that mapping at any particular instance in time.
RFC 1034 section 31 Any domain label can be at most 63 characters long. A subset of DNS functions and data types constitute an official protocol. In both the local and domain parts there are specifications published online which determine what characters are acceptable for either one. RFC 2396 URI Generic Syntax August 1998 The resource is the conceptual mapping to an entity or set of entities not necessarily the entity which corresponds to that mapping at any particular instance in time.