fork download
  1. using System;
  2. using System.Text.RegularExpressions;
  3. public class Test
  4. {
  5. public static void Main()
  6. {
  7. string msg= "__cfduid=d2eec71493b48565be764ad44a52a7b191399561601015; expires=Mon, 23-Dec-2019 23:50:00 GMT; path=/; domain=.planetminecraft.com; HttpOnly";
  8. var charSetOccurences = new Regex(@"\s*([^=;]+)(?:=([^=;]+))?");
  9. var charSetMatches = charSetOccurences.Matches(msg);
  10. foreach (Match match in charSetMatches)
  11. {
  12. Console.WriteLine(match.Groups[1].Value + "\n" + match.Groups[2].Value + "\n");
  13. }
  14. }
  15. }
Success #stdin #stdout 0.07s 34760KB
stdin
Standard input is empty
stdout
__cfduid
d2eec71493b48565be764ad44a52a7b191399561601015

expires
Mon, 23-Dec-2019 23:50:00 GMT

path
/

domain
.planetminecraft.com

HttpOnly