Halloween Special 2026! Get Up to 25% OFF Practice Questions! Limited Time - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ServiceNow CIS-EM Exam - Topic 2 Question 80 Discussion

Posted by Elli on Jul 30, 2025 at 11:30 PM

Which is a correct regex expression to capture only the server's hostname (webserver3) in "The server webserver3.domain.com is down."?

Suggested Answer: D

Get Premium CIS-EM Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
19 comments · newest first
RE
Reita 10 months ago
D? Really? That can't be correct.
MA
Marget 11 months ago
C looks good, but not specific enough.
FL
Fletcher 11 months ago
I think B is way off.
SU
Sunshine 11 months ago
Wait, can regex really do that? Sounds tricky!
LA
Latosha 11 months ago
A is the right choice!
SA
Sarina 11 months ago
I feel like option C might work, but I can't recall if the `\s` is the right choice for what we need here.
MI
Mitzie 12 months ago
None of these seem quite right to me. I thought we needed to use something like `(\w+)` for just the hostname.
DE
Denna 12 months ago
I remember practicing regex questions, and I feel like we need to focus on the part before the first dot.
ME
Mee 1 year ago
I think option A looks familiar, but I'm not sure if it captures just the hostname correctly.
ST
Stevie 1 year ago
Okay, I've got it! The answer is C. The (.*) will capture the hostname, and \s will match the whitespace after it. Nice and simple.
CH
Chaya 1 year ago
Hmm, this is a tricky one. I'm leaning towards option B, but I'm not 100% sure. I'll double-check the regex syntax to make sure I'm understanding it correctly.
MA
Marcelle 1 year ago
I'm a bit confused by this question. The regex expressions all look pretty complex to me. I'll have to think it through carefully.
ED
Edelmira 1 year ago
I think the answer is C. The regex (.*) will capture the hostname, and \s will match the whitespace after it.
TA
Tamekia 1 year ago
I think D) The server (.*?)\\* is too restrictive and won't capture the full hostname
LE
Lezlie 1 year ago
I'm not sure, but I think A) captures everything after 'The server'
HE
Heike 1 year ago
I disagree, I believe it's C) The server (.*)\\s.*
AI
Ailene 1 year ago
I think the correct regex expression is A) The server (.*)\\..*
DA
Daren 1 year ago
I think option C is the correct regex expression. It captures the hostname (webserver3) between 'The server' and '.domain.com'.
NO
Nobuko 1 year ago
↳ replying to Daren
I think option C is the correct regex expression. It captures the hostname (webserver3) between 'The server' and '.domain.com'.
0/2000 characters

Save Cancel