From: Christian Neukirchen Date: 2006-04-23T01:19:17+09:00 Subject: Re: Regular expression to parse out "host" part of URL strin "Berger, Daniel" writes: > unless path.index('http://', 0) unless path.index('http://') == 0 > path = 'http://' + path > host = URI.parse(path).host > end > > It's not necessarily the most robust solution, but you get the general > idea. > Regards, > > Dan -- Christian Neukirchen http://chneukirchen.org