On Sep 5, 2006, at 10:16 AM, Jan Svitok wrote: > > > Look at URI it it does something for you. Anyway, the question is more > complicated than it seems (take 4 level domains for example). > Basically url.split('.')[1..-1] could make it. > Well, no it couldn't ;) amazon.co.uk for instance.