Hi! I'm trying to write a regex that splits up a hostname and returns it
in a nice array. For example:

"eat.chunky.bacon.com" => regex => ["eat","chunky","bacon","com"]

Been trying to wrap my head around this, but I merely get around to
catching the top domain ;) Anyone done this recently?

Many thanks!
-- 
Posted via http://www.ruby-forum.com/.