fork download
  1. subject = '1-24,,{(2000.00,0.0),(2000.00,8.0),(450.00,72.0)},{(72.0,14.5,14.5)},N,Y,N;'
  2. regex = /("[^"]*")|,/
  3. replaced = subject.gsub(regex) {|m|$1}
  4. puts replaced
  5.  
Success #stdin #stdout 0.01s 8104KB
stdin
Standard input is empty
stdout
1-24{(2000.000.0)(2000.008.0)(450.0072.0)}{(72.014.514.5)}NYN;