From: gabe gabriellini Date: 2012-04-04T23:13:49+09:00 Subject: Re: regexp replace every other one Thank you so much Robert Klemme I knew it was possible that works great. I actually did it with: myfield = %w[gabriel y martha iba gtz ibanez nat] myfield.each { |word| if word.length==3 ;word.gsub!(word,"gutierrez") end } puts myfield.join " " but I was not happy gabe -- Posted via http://www.ruby-forum.com/.