On Sat, May 8, 2010 at 12:15 PM, Viorel <viorelvladu / gmail.com> wrote:
> I have some names like aaxxbbyy where xx is '01'..'10' and yy is also
> '01'..'10'. I think there is a simple, rubyst way of iterating through
> them, and I ask for your help in finding it. Thank you in advance!
>
>
Without knowing what aa and bb look like I can only guess.
Supposing that aa and bb are not digits I would do the following:

scan( /\d\d?/) # --> array of matches

or e.g

scan( /\d\d?/ ){ | a_match| do_whatever_pleases_you_with( a_match ) }

HTH
R.

-- 
The best way to predict the future is to invent it.
-- Alan Kay