2021年3月14日星期日

Regex to match after double backslash slash until .com

I've been trying to regex the following message:

Netlogon has failed an additional 130 authentication requests in the last 30 minutes. The requests timed out before they could be sent to domain controller \\AA-SRV85.xx.acme.com in domain XX. Please see http://support.microsoft.com/kb/2654097 for more information.

So far, I've managed to understand that if use the following, I will find a match for \\AA-SVR85.xx.acme.com

\\\\AA\-SRV85\.xx\.acme\.com  

But the thing is, I have multiple servers in my environment and the server name will certainly vary.

Can someone please explain how this should be done?

My goal is to match everything after the double backslash until the end of the domain (.com).

https://stackoverflow.com/questions/66628448/regex-to-match-after-double-backslash-slash-until-com March 15, 2021 at 03:04AM

没有评论:

发表评论