FQDN Validation
Posted by: RegexLib.com - Recent Patterns,
on 18 Apr 2007 |
View original | Bookmarked: 0 time(s)
Validates MS FQDNs. 1) Entire fqdn less than 255 chars. 2) Host and domain names may contain an underscore. 3) 1st char can be a number. 4) No part can be all numbers. 5) Allows any TLD Works in C#. Based on Remi Sabourin's regex. Based on anonymous feedback I've corrected it to no longer match domains that start or end with a hyphen.