From: "Jesús Gabriel y Galán" Date: 2013-01-16T17:01:43+09:00 Subject: Re: regex hostnames? On Wed, Jan 16, 2013 at 12:36 AM, Matthew Kerwin wrote: > On 16 January 2013 09:20, Joel Pearson wrote: >> >> > >> > s = "host1.temp.temp.com" >> > s[/\..*/,1] >> >> Shouldn't that be s[/\..*/,0] or s[/\..*/] ? >> > > Or if you don't want the dot: > > s[/\.(.*)/,1] Exactly, that was what I meant to write... Jesus.