ServiceNow Certified Implementation Specialist – Event Management — Question 44

The correct regex to capture the name of the server in “the server webserver3.domain.com is down” would be:

Answer options

Correct answer: C

Explanation

Option C is correct because it captures the server name by looking for a pattern of words separated by periods, preceded by a space. Option A is incorrect as it matches all characters before and after the server name, but does not specifically identify the server name in context. Option B does not capture the server name correctly as it only matches anything after 'The server'. Option D captures everything after 'the server', which is too broad and includes more than just the server name.