fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. string pattern = @"(?<=""[^""\r\n]*)[^;\r\n""]+(?=[^""\r\n]*"")";
  9. string input = @"-from:""azerty;y9uiuih;qwsdf""
  10. -to:""ftyg hjhh;w__g_-91""";
  11.  
  12. foreach (Match m in Regex.Matches(input, pattern))
  13. {
  14. Console.WriteLine(m.Value);
  15. }
  16. }
  17. }
Success #stdin #stdout 0.09s 29448KB
stdin
Standard input is empty
stdout
azerty
y9uiuih
qwsdf
ftyg hjhh
w__g_-91