in reply to Test the syntactic validity of a domain name
sub valid_domain { return $_[0] =~ m{ \A (?: (?!\d+\.) [a-zA-Z0-9]+ (?: -+ [a-zA-Z0-9]+ )* \. )* (?!\d+\z) [a-zA-Z0-9]+ (?: -+ [a-zA-Z0-9]+ )* }x;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
RE: RE: Test the syntactic validity of a domain name
by tye (Sage) on Sep 20, 2000 at 21:07 UTC | |
by japhy (Canon) on Sep 20, 2000 at 21:13 UTC |