fork(2) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var input = "\"one@tw;,.'o\"@hotmail.com;\"some;thing\"@example.com;hello@world";
  9. var mm = Regex.Matches(input, "((?:[^@\"]+|\"[^\"]*\")@[^;]+)(?:;|$)");
  10. foreach (Match m in mm) {
  11. Console.WriteLine(m.Groups[1].Value);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.12s 24680KB
stdin
Standard input is empty
stdout
"one@tw;,.'o"@hotmail.com
"some;thing"@example.com
hello@world