Paul Rubin wrote:
> "js " <[EMAIL PROTECTED]> writes:
> > Here, domain name doesn't contain subdomain,
> > or should I say, domain's part of 'www', mail, news and en should be
> > excluded.
>
> It's a little more complicated, you have to treat co.uk about
> the same way as .com, and similarly for some other countries
> but not all.  For example, subdomain.companyname.de versus
> subdomain.companyname.com.au or subdomain.companyname.co.uk.
> You end up needing a table or special code to say
> how to treat various countries.

Plus, how do you order "https:", "ftp", URLs with "www.", "www2." ,
named anchors etc?

Gentle reminder: is this homework?  And you can expect better responses
if you show youve bootstrapped yourself on the problem to some extent.

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to