s.gsub(/\d+(,)\d+/, “”)
It turns out that my regex removes the entire number, not just the comma.
Er, yes, you asking to replace \d+(,)\d+ with nothing, that’s exactly
what it does…
Try something like this (typing from memory, untested):
s.gsub(/(\d),(\d\d\d)/, “\1\2”)
–
Didier