Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.NET Regex expressions
#2
The regex does not match. This code with the same regex prints "not found".

Code:
Copy      Help
        Triggers.Window[TWEvent.ActiveNew, null, null, "**m chrome.exe||msedge.exe||brave.exe"] = o => {
            var w = o.Window;
            print.it("Browser Triggered", w);
            if (Regex.IsMatch(w.Name, "^(?=.*\b(Chrome|Edge|Brave)\b)(?!.*\bWork - Microsoft Edge\b).*")) {
                print.it("Browser Found");
            }
else {
                print.it("Browser Not Found");
            }
        };


Messages In This Thread
.NET Regex expressions - by lipinskicad - 09-27-2024, 08:53 PM
RE: .NET Regex expressions - by Gintaras - 09-28-2024, 05:06 AM

Forum Jump:


Users browsing this thread: 2 Guest(s)