[ILUG] regexps for domains

Ruairí Newman ruairi at tech-mad.org
Thu Aug 11 14:41:45 IST 2005


Hi Kae,

On Thu, August 11, 2005 13:10, Kae Verens said:
> had a funny one recently here - one of the designers was demonstrating
> my CMS to a client, and the CMS "randomly" highlighted a time -
>
> 12.30-14.30
>
> I was asked why that happened - it happened because that is, of course,
> a perfectly valid domain name.

Almost.  I don't know if it's specifically prohibited (I presume it is),
but I can't think of any numeric TLDs.

> Anyone got a handy regexp which matches most URLs, but not potential
> gotchas like that one?

Not offhand, sorry.

Rgds,

R.


-- 
And they shall beat their swords into plowshares, for if you hit a man
with a plowshare, he's going to know he's been hit.
                   -- Fortune




More information about the ILUG mailing list