Hey,
is there some sort of humor I am not getting here?
why does it fail for foo.co.uk?

irb(main):001:0> "eat.chunky.bacon.com".split(/\./)
=> ["eat", "chunky", "bacon", "com"]
irb(main):002:0> "foo.co.uk".split(/\./)
=> ["foo", "co", "uk"]

On Jan 14, 2008, at 8:27 PM, Thomas Adam wrote:

>>> "eat.chunky.bacon.com".split(/\./)
> => ["eat", "chunky", "bacon", "com"]
>
> The above will fail for foo.co.uk, but that's your problem.  :)