- The first Regular Expression Library on the Web!

Please support RegExLib Sponsors


Regular Expression Details

Title Test Find UK Domain Names
UK domain names. Includes the following restrictions from Nominet as at time of posting: 1.Only a-z, 0-9 and hyphen may be used. 2.First or last character may not be a hyphen. 3.Third and fourth characters may not both be hyphens. 4.Third level domain may not be a single character. 5.Third level domain may not be two letters or two numbers. 6.Third level domain may be one letter and one number. This does not yet include the following restrictions: 1.Whole domain may not be longer than 64 characters in length. 2.Third level domain may not duplicate any top/second level domain.
Matches | |
Non-Matches | |
Author Rating: Not yet rated. Amos Hurd
Your Rating
Bad Good

Enter New Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

Title: Pattern Title
Name: naz
Date: 1/31/2009 12:04:20 AM
Dear Amos..Your Regular Expression about UK domain names is very great.I like it!I want to implement to validate my domain name.I'm from Malaysia.Actually I want find the domain name that validate double dot(..) and double dash(--).I already test your expression.It fulfill my need to validate the domain name.I alter the expression and add .my(to check domain name : But cannot check for .my( can i alter your expression to ensure that it match the u help me?

Copyright © 2001-2018, | ASP.NET Tutorials