[ILUG] regexps for domains
ruairi at tech-mad.org
Thu Aug 11 14:41:45 IST 2005
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 -
> 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.
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.
More information about the ILUG