using System;
using System.Text.RegularExpressions;
using System.Linq;
public class Test
{
public static void Main()
{
var str = "hello Exclude1 4:32 test test Exclude2 5:23 hello 2:19 some more text 42:3 more text";
var matches = Regex.Matches(str, @"(?<!Exclude1 )(?<!Exclude2 )\d+:\d+");
foreach (var match in matches.Cast<Match>())
Console.WriteLine(match.Value);
}
}
dXNpbmcgU3lzdGVtOwp1c2luZyBTeXN0ZW0uVGV4dC5SZWd1bGFyRXhwcmVzc2lvbnM7CnVzaW5nIFN5c3RlbS5MaW5xOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewogICAgICAgIHZhciBzdHIgPSAiaGVsbG8gRXhjbHVkZTEgNDozMiAgdGVzdCB0ZXN0IEV4Y2x1ZGUyIDU6MjMgaGVsbG8gMjoxOSBzb21lIG1vcmUgdGV4dCA0MjozIG1vcmUgdGV4dCI7CiAgICAgICAgdmFyIG1hdGNoZXMgPSBSZWdleC5NYXRjaGVzKHN0ciwgQCIoPzwhRXhjbHVkZTEgKSg/PCFFeGNsdWRlMiApXGQrOlxkKyIpOwogICAgICAgIGZvcmVhY2ggKHZhciBtYXRjaCBpbiBtYXRjaGVzLkNhc3Q8TWF0Y2g+KCkpCiAgICAgICAgICAgIENvbnNvbGUuV3JpdGVMaW5lKG1hdGNoLlZhbHVlKTsKCX0KfQ==