From: Robert Klemme Date: 2006-05-05T21:32:13+09:00 Subject: Re: Newbie question 2006/5/5, Kyle Alons : > Given an array like > > ["&abc", "a&cb", "b&ac", "ccc", "cb&a"] > > what is the Ruby way to construct an array containing only elements with > duplicate characters following the &'s? In this case > > ["&abc", "b&ac", "cb&a"] You can use select or inject. However it's not clear to me what you mean by "duplicate characters following the &'s". Can you elaborate? robert -- Have a look: http://www.flickr.com/photos/fussel-foto/