From: Joel Pearson Date: 2013-01-16T08:20:51+09:00 Subject: Re: regex hostnames? > > s = "host1.temp.temp.com" > s[/\..*/,1] Shouldn't that be s[/\..*/,0] or s[/\..*/] ? -- Posted via http://www.ruby-forum.com/.