Stefan Rusterholz wrote: > > Wow, I'm surprised nobody had the idea of simply using Array#abbrev, > which is included in the stdlib. > > Regards > Stefan Well that looks simple enough! Looks like I would take the shortest key returned and chop! the last character to get the common prefix. If the shortest key length was 1, there is no common prefix. I had never used Abbrev before - thanks for pointing it out. This wasn't a contest, but if it were - I think you won! Todd -- Posted via http://www.ruby-forum.com/.