s = ",,,,C3:,D3,E3,F3,,"puts s.gsub(/\G,/, ' ').sub(/,+\z/, ']').sub(/:,+/, ': [')
Standard input is empty
C3: [D3,E3,F3]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!