From: Gavin Sinclair Date: 2003-10-13T08:07:29+09:00 Subject: Re: Ruby idiom for all matches in a string On Monday, October 13, 2003, 8:34:41 AM, David wrote: > What's the ruby idiom for all the matches in a string. > x="ABA ABBBA CBBA" > /A(B+)/.match(x) > Ultimately, I want to get [ "B", "BBB" ] > Thanks /A(B+)/.match(x).captures Gavin