From: Ammar Ali Date: 2012-04-01T08:48:11+09:00 Subject: Re: regexp replace every other one On Sat, Mar 31, 2012 at 11:37 PM, gabe gabriellini wrote: > I understand what you explain but I don't think I am going to check a > hole database with more than 5 thousand records. I don't think so. I in no way meant for you to change the data. I wanted to expose the problem in the regular expression better, not the data. > the easiest way would be to run the code twice but where is DRY. The easiest way would be to understand what doesn't work in that expression and find a better way to accomplish your goal. http://ruby.runpaint.org/regexps Regards, Ammar