View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Charlotte E.[_3_] Charlotte E.[_3_] is offline
external usenet poster
 
Posts: 160
Default Top-Level Domain

Hi,


I would like to test, if a given URL contains a valid (existing)
top-level domain.

Say, if the user enters ".net" everything is fine, but if the user, by
accident, enters ".nwt" a waring will appear (the "w" key is right next
to the "e" key on the keyboard, so this mistake is very easy to do!).

Question is: Do I really have to test for each and every one of the 317
top-level domains, one by one, giving one heck of a 'Select Case' test
or is there a more cleaver way of doing this???


TIA,

CE