Seems to cause issues when dealing with domains like:somewhere.co.uk..Any idea of a work around?
I can't think of a one-size-fits-all solution that doesn't incorporate a list of all possible TLDs and adjusts accordingly. And even then, it's probably not precise.
I forgot an ELSE... look at »codepad.org/NGlABcACYou can add more logic if you don't want ANY invlaid domains being returned, even when max node count is greater than 0.But like PetePuma said, there is no catch all for this. Some of it is going to have to be implementation specific.