fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8.  
  9.  
  10. String input = @"""text"", text2, ""text""
  11. meeeh = ""Y""
  12. else
  13. meeeh2 = ""N""";
  14.  
  15. Regex rgx = new Regex(@"""(.[^,""]*)\""");
  16.  
  17. foreach (Match m in rgx.Matches(input))
  18. Console.WriteLine(m.Groups[1].Value);
  19.  
  20. }
  21. }
Success #stdin #stdout 0.08s 34136KB
stdin
Standard input is empty
stdout
text
text
Y
N