Regex for validating domain name
The User Part: while Goyuix has stated what characters are not allowed.What that says implicetly is that ALL OTHER characters ARE allowed.It just makes more sense, especially from a future maintainability perspective, and will make things easier for you in the future.
So using the list of generic and country-specific top level domains (combined list) provided by the Internet Assigned Numbers Authority I put this together: /^([a-z0-9]([-a-z0-9]*[a-z0-9])?
The ending quotation mark must not be preceded by a backslash character (\).
Microsoft is conducting an online survey to understand your opinion of the Technet Web site.
If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.