RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find All existing TLDs (Top-Level Domains) according to IANA specifications
Expression
(a(?:[cdefgilmnoqrstuwxz]|ero|(?:rp|si)a)|b(?:[abdefghijmnorstvwyz]iz)|c(?:[acdfghiklmnoruvxyz]|at|o(?:m|op))|d[ejkmoz]|e(?:[ceghrstu]|du)|f[ijkmor]|g(?:[abdefghilmnpqrstuwy]|ov)|h[kmnrtu]|i(?:[delmnoqrst]|n(?:fo|t))|j(?:[emop]|obs)|k[eghimnprwyz]|l[abcikrstuvy]|m(?:[acdeghklmnopqrstuvwxyz]|il|obi|useum)|n(?:[acefgilopruz]|ame|et)|o(?:m|rg)|p(?:[aefghklmnrstwy]|ro)|qa|r[eosuw]|s[abcdeghijklmnortuvyz]|t(?:[cdfghjklmnoprtvwz]|(?:rav)?el)|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw])
Description
This regexp matches all existing TLDs (Top-Level Domains) according to IANA specifications as of 14/07/2007.
Matches
all ccTLDs (Country-Code Top-Level Domains) | all gTLDs (Generic Top-Level Domains) | .arpa
Non-Matches
n.o.n - e.x.i.s.t.i.n.g T.L.D.s
Author Rating: The rating for this expression. Daniel Beck
Source
Your Rating
Bad Good

Enter New Comment

Title
 
Name
 
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: Title
Name: MizardX
Date: 5/13/2009 2:28:30 PM
Comment:
Even if the '|' is added before 'iz', this won't work on it's own. There has to be something after, i.e. '$' or '/'. If you run this regex on "travel", you would only match "tr" because of the way it is ordered.


Title: Really wrong
Name: Andrey
Date: 1/9/2008 10:07:16 AM
Comment:
Does not support by, biz, bg and so on. The very problem is in that slice: b(?:[abdefghijmnorstvwyz]iz) it looks like it should be b(?:[abdefghijmnorstvwyz]|iz)


Title: Really wrong
Name: Andrey
Date: 1/9/2008 10:06:52 AM
Comment:
Does not support by, biz, bg and so on. The very problem is in that slice: b(?:[abdefghijmnorstvwyz]iz) it looks like it should be b(?:[abdefghijmnorstvwyz]|iz)


Title: Joe
Name: Joe
Date: 12/22/2005 3:09:16 PM
Comment:
You are wrong.


Copyright © 2001-2018, RegexAdvice.com | ASP.NET Tutorials