| 
     
      
      
      From: Simon W. <es...@ou...> - 2003-02-11 16:35:40
      
     
   | 
On Tue, 2003-02-11 at 16:23, Wizard wrote: > > I don't think you can do this programatically. Strictly speaking, aol.* > > should NOT match aol.co.uk. It;s only your semantic interpretation of > > the data that "knows" that aol.co.uk and aol.com are the same > > organisation. > > Well I have some code now that will do just that, but not the last one > because it doesn't fit the DOMAIN.TLD[.CC] format. > > > > How do we know *programatically* that aol.parliament.uk is not part of > > AOL ? > > Presently we don't. I'll see what I can come up with for code later this > evening. I have an interview right now. I would think that the only way to do it is to maintain a lookup of the "generic" second level domains under the ccTLDs. For instance: .co.uk is generic .bl.uk is not Wee, how about this one I just found... www.co.uk The only way you can tell them apart is to precode that metadata somewhere. I smell maintenance nightmare. Tell me again why you want to do this ? I still don't grok how this code is going to be used. Simon.  |