From: Ronald Fischer Date: 2007-08-23T22:08:31+09:00 Subject: Re: Selecting indices from an array > If this is a > problem, you can use this: > > a.enum_for(:each_with_index).inject([]){|res, i| > i[0].match( /g$/) ? res << i[1] : res > } This is an idea I like! Thanks a lot! Ronald -- Ronald Fischer Phone: +49-89-452133-162