Advertisement
edward_freedom

Untitled

Mar 12th, 2021
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1.             string pattern = @"([A-Za-z]+).([^A-Z]+)";
  2.             string input = @"Time= 12.03.2021 Hash=asdfjsldhfsdkljfklsejrfj Ticks=7458734985,545 IP=::1";
  3.             RegexOptions options = RegexOptions.Multiline;
  4.             var matches = Regex.Matches(input, pattern, options);
  5.             foreach (Match match in matches)
  6.             {
  7.                 Debug.WriteLine($"key: {match.Groups[1].Value}, value: {match.Groups[2].Value}");
  8.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement