From: ts Date: 2002-01-21T18:36:28+09:00 Subject: Re: Coding challenge :-) >>>>> "D" == David Alan Black writes: >> p ACollection.new("a-c,g-h,k,x-y,aa-ac").expanded D> I'm not sure what you mean about the alphabetic examples. (That D> would raise an argument error in the framework I've written, which D> expects only integers.) Your example was an ICollection, mine is an ACollection pigeon% ruby -e 'p "a-c,g-h,k,x-y,aa-ac".gsub("-", "..")' "a..c,g..h,k,x..y,aa..ac" pigeon% and you see a Range object Guy Decoux