3 ms·
> 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. "
by rue 16y ago
> 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?
- viggity 16y agothat looks exactly like a match evaluator, so it looks like ruby does have that ability. Awesome.