Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

ServiceNow CIS-SM Exam - Topic 8 Question 96 Discussion

Which one of the following Regular Expressions could be used to parse the value 5.2.0 from the string:
C) Version\s+(\d+\.\d+\.\d+)
A) Version (\d+)
B) Version (\d+).0\d+).(\d+)
D) Version (.\A)

ServiceNow CIS-SM Exam - Topic 8 Question 96 Discussion

Actual exam question for ServiceNow's CIS-SM exam
Question #: 96
Topic #: 8
[All CIS-SM Questions]

Which one of the following Regular Expressions could be used to parse the value 5.2.0 from the string:

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

0/2000 characters
Colette
2 months ago
C is clear and precise for parsing.
upvoted 0 times
...
Francine
2 months ago
B is close, but it has extra parts.
upvoted 0 times
...
Leota
2 months ago
D doesn't make sense for this case.
upvoted 0 times
...
Barney
2 months ago
A is too simple, it won't work for 5.2.0.
upvoted 0 times
...
Carin
3 months ago
Yeah, C captures the full version format.
upvoted 0 times
...
Hoa
3 months ago
I’m surprised A is even an option; it doesn’t cover the full version!
upvoted 0 times
...
Dorethea
3 months ago
Wait, is D even a valid regex? Seems off to me.
upvoted 0 times
...
Major
4 months ago
Definitely going with C, it captures all parts correctly!
upvoted 0 times
...
Aron
4 months ago
I think A could work too, but it’s too simple.
upvoted 0 times
...
Lovetta
4 months ago
C) is the way to go. Regular expressions may look intimidating, but they're super powerful once you get the hang of them.
upvoted 0 times
...
Aleta
4 months ago
Haha, who even uses regular expressions these days? Just use a string split, it's way easier.
upvoted 0 times
...
Amira
4 months ago
D) Version (.\A) is clearly the wrong answer. That wouldn't match the version number at all.
upvoted 0 times
...
Ena
4 months ago
I'm pretty sure the answer is C. It looks like the most straightforward way to parse the version number.
upvoted 0 times
...
Arlette
5 months ago
C) Version\s+(\d+\.\d+\.\d+) is the correct answer. It uses a regular expression to match the version number in the format "Version 5.2.0".
upvoted 0 times
...
Johna
5 months ago
I practiced regex questions before, and I feel like option A is too simple to capture the full version number.
upvoted 0 times
...
Kathrine
5 months ago
I'm not entirely sure, but I remember something about using \s+ for spaces in regex. Maybe that makes option C the right choice?
upvoted 0 times
...
Ines
5 months ago
I'm going to go with C. The other choices seem overly complicated or don't quite fit the given format. C looks like the cleanest and most straightforward solution.
upvoted 0 times
...
Angelo
5 months ago
I'm pretty confident that C is the right answer. The other options either don't match the full version string or have unnecessary complexity.
upvoted 0 times
...
Princess
5 months ago
Hmm, I'm leaning towards C as well. The other options don't seem to fully capture the version string format. C looks like the most robust solution.
upvoted 0 times
...
Simona
6 months ago
I think option C looks familiar because it captures the version format with the three numbers separated by dots.
upvoted 0 times
...
Sanjuana
6 months ago
C is the right choice for parsing that version format.
upvoted 0 times
...
Onita
6 months ago
I think option C is the best choice.
upvoted 0 times
...
Nikita
6 months ago
I’m confused about option B; it seems to have extra parentheses that might not be necessary. Did we cover that in class?
upvoted 0 times
...
Craig
7 months ago
I'm a bit confused on this one. I'm not sure if B or C is the better approach. I'll need to think it through carefully.
upvoted 0 times
...
Yolande
7 months ago
I think C is the best option here. The regex "Version\s+(\d+\.\d+\.\d+)" should be able to capture the full version string, including the 5.2.0 value.
upvoted 0 times
Lenna
1 month ago
C handles the version format perfectly.
upvoted 0 times
...
Sage
1 month ago
C is the best choice for sure!
upvoted 0 times
...
Sheron
2 months ago
C is definitely the most precise option.
upvoted 0 times
...
Kristeen
2 months ago
I agree, C looks solid for capturing the full version.
upvoted 0 times
...
Lou
6 months ago
I think C captures everything we need.
upvoted 0 times
...
...

Save Cancel