fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string test = "\"foo\",\"bar\",\"1\",\"\",\"baz\"";
  9. string pattern = "\"[^\"]*\"";
  10. MatchCollection mc = Regex.Matches(test, pattern);
  11. foreach (var m in mc) {
  12. Console.WriteLine(m);
  13. }
  14. }
  15. }
Success #stdin #stdout 0.07s 34096KB
stdin
Standard input is empty
stdout
"foo"
"bar"
"1"
""
"baz"