fork(2) download
  1. using System;
  2. using System.Linq;
  3. using System.Collections.Generic;
  4.  
  5. public class Test
  6. {
  7. public static void Main()
  8. {
  9. string text = "'2014' , '381' , '1' , 'Eastern 10' , 'Wes 10' , '1'";
  10. string[] words = text.Split(new[] { "' , '" }, StringSplitOptions.None);
  11. string result = string.Join("", words.Take(2).ToArray()) + string.Join("' , '", words);
  12. Console.Write(result);
  13. }
  14. }
Success #stdin #stdout 0.06s 34136KB
stdin
Standard input is empty
stdout
'2014381'2014' , '381' , '1' , 'Eastern 10' , 'Wes 10' , '1'