fork(1) download
  1. using System;
  2. using System.Text.RegularExpressions;
  3.  
  4. public class Test
  5. {
  6. public static void Main()
  7. {
  8. var s = "First, Last <email1@example.com>; First, Last <email2@example.com>;";
  9. Regex regex = new Regex(@"<([^>]+)>");
  10. foreach (Match m in regex.Matches(s)) {
  11. Console.WriteLine(m.Groups[1]);
  12. }
  13. }
  14. }
Success #stdin #stdout 0.08s 24536KB
stdin
Standard input is empty
stdout
email1@example.com
email2@example.com