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.

Category: Regex | Other Posts: View all posts by this blogger | Report as irrelevant | View bloggers stats | Views: 4854 | Hits: 228

Similar Posts

  • Telerik Launches RadControls for Silverlight 3 for Line-of-Business Application Development more
  • Silverlight Release History : Q2 2009 (version 2009.2.701) more
  • The fallacy of the always-valid entity more
  • Validation. Hey! Youre Done! more
  • Validation - Part 3 - Server-Side more
  • Validation - Part 2 - Client-Side more
  • Validation - Part 1 - Getting Started more
  • Talking Points: ADO.NET Dynamic Data more
  • ASP.NET MVC View Engine using VB.NET XML Literals more
  • ASP.NET Podcast Show #127 - Dynamic Data more

News Categories

.NET | Agile | Ajax | Architecture | ASP.NET | BizTalk | C# | Certification | Data | DataGrid | DataSet | Debugger | DotNetNuke | Events | GridView | IIS | Indigo | JavaScript | Mobile | Mono | Patterns and Practices | Performance | Podcast | Refactor | Regex | Security | Sharepoint | Silverlight | Smart Client Applications | Software | SQL | VB.NET | Visual Studio | W3 | WCF | WinFx | WPF | WSE | XAML | XLinq | XML | XSD