Re: [netmod] regexp for domain name
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [netmod] regexp for domain name



Martin Bjorklund píše v Po 14. 07. 2008 v 17:21 +0200:
> Ladislav Lhotka <lhotka at cesnet.cz> wrote:
> > Juergen Schoenwaelder píše v Po 14. 07. 2008 v 11:11 +0200:
> > > I will change this patter to read as follows:
> > > 
> > > 	'([a-zA-Z0-9\-]+\.)*[a-zA-Z0-9\-]+'
> > 
> > According to RFC 1034 it should be
> > 
> > ([a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]\.)*[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9]
> 
> Poor 3com.com (just one example).  What are the rules that are really
> used?

You are right, RFC 1123 relaxed this (Sec 2.1) and allowed first
character to be either letter or digit. So hopefully the final version
is
    '([a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]\.)*'
+   '[a-zA-Z0-9][a-zA-Z0-9\-]*[a-zA-Z0-9]'

Lada

> 
> 
> /martin
-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C

_______________________________________________
netmod mailing list
netmod at ietf.org
https://www.ietf.org/mailman/listinfo/netmod

Note: Messages sent to this list are the opinions of the senders and do not imply endorsement by the IETF.