Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- string pattern = @"([A-Za-z]+).([^A-Z]+)";
- string input = @"Time= 12.03.2021 Hash=asdfjsldhfsdkljfklsejrfj Ticks=7458734985,545 IP=::1";
- RegexOptions options = RegexOptions.Multiline;
- var matches = Regex.Matches(input, pattern, options);
- foreach (Match match in matches)
- {
- Debug.WriteLine($"key: {match.Groups[1].Value}, value: {match.Groups[2].Value}");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement