From: Chem Leakhina Date: 2009-06-23T12:46:57+09:00 Subject: how to extract domain name without sub domain from url Hi everyone, Does anyone know how to extract domain name without sub domain from url? Example: http://test.domain.com => http://domain.com Please give me an example code in ruby. Thanks, Leakhina -- Posted via http://www.ruby-forum.com/.