Title |
Test
Find
Pattern Title
|
Expression |
^(([a-zA-Z0-9]+([\-])?[a-zA-Z0-9]+)+(\.)?)+[a-zA-Z]{2,6}$ |
Description |
Checks domain names. This will match all of the valid domains. It will accept TLD's that are from 2 to 6 characters. You can not have more then one dash or period next to each other. Also it will not let you have dashes at end of the words. |
Matches |
www.domain.com | your-domain.com | www.sub-domain.your-domain.museum |
Non-Matches |
.domain.com | your---domain.com | www.-sub-.com |
Author |
Rating:
Faruk Brbovic
|
Source |
|
Your Rating |
|
Title: almost
Name: Remi Sabourin
Date: 6/3/2008 7:52:02 PM
Comment:
a.com is a valid domain
For alternative regular expression, see http://regexlib.com/REDetails.aspx?regexp_id=391