On 10/03/2009 07:11 PM, John Hardin wrote:
[^./]{8}\.cn

Actually, doesn't this match other characters that shouldn't be in a
domain name?

...is _anything_ (apart from periods) excluded from domain names these
days? :)

Changed to \w{8} for testing. Can you provide examples of needing more
than \w?

I doubt it matters for this particular rule, but dash characters are valid in domain names too right?

\w seems to be alpha, numeric and underscore. Underscore isn't valid in a domain name.

Warren

Reply via email to