ServiceNow Certified Implementation Specialist – Service Mapping — Question 1
Which one of the following best represents the output from the following Regular Expression?
([\w\d\-\.]+)
Answer options
- A. Match a single character in the list between one and unlimited times.
- B. Match a single character in the list one time.
- C. Match a single character in the list between one and three times.
- D. Match a single character in the list between one and ten times.
Correct answer: A
Explanation
The correct answer is A because the '+' quantifier in the Regular Expression indicates that the preceding character set can match one or more times, which can be unlimited. Options B, C, and D are incorrect as they restrict the number of matches to a specific count, which does not reflect the behavior of the '+' quantifier.