Title |
Test
Find
Host name
|
Expression |
[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*(?:\.[A-Za-z0-9]+(?:-[A-Za-z0-9]+)*)* |
Description |
Multi-part host name validator, RFC-compliant but does not validate length of components or overall length |
Matches |
localhost www.example.com host-1234.example.com |
Non-Matches |
localhost. -1234.example.com |
Author |
Rating:
Kevin Dean
|
Source |
|
Your Rating |
|
Title: Some Errors
Name: Anon
Date: 10/24/2014 2:21:30 AM
Comment:
Doesn't work for
- xn--foo.com (IDN)
- foo---bar---baz.com (Yes, this is valid.)
- foo.com. (Trailing dot. Yes, this is valid.)
- foo_bar.baz.com (Underscore, have only seen this at freehosters)