From: gabe gabriellini Date: 2012-04-01T05:09:13+09:00 Subject: Re: regexp replace every other one thank you Ammar this works great: puts "abc def ghi jkl mno".gsub(/[a-z]{3}/, "123") The only problem i have is when i use a string like this one: puts "gabriel y martha iba gtz ibanez nat".gsub(/(\A|\s)([a-zA-Z]{3}) ($|\s)/," Gutierrez ") the gtz after the iba does not get replaced -- Posted via http://www.ruby-forum.com/.