News for hackers. Stuff that matters.
Re:New Ruby 1.9 Features, Tips & Tricks by rue on Monday February 21, 2011 @04:55PM (#2247392)
> Currently, find/replace only lets you re-order or remove groups or insert static text.

I must be misunderstanding you, but that's obviously incorrect.

    "foo 1 bar 2".gsub(/\d+/) {|m| m.to_i * 2 }
1.8 also. Does MatchEvaluator bring more to the table?
Re:New Ruby 1.9 Features, Tips & Tricks by viggity on Monday February 21, 2011 @10:41PM (#2248610)
that looks exactly like a match evaluator, so it looks like ruby does have that ability. Awesome.