The correct answer is: A
Explanation:
[\w\d\-\.] matches any word character, digit, hyphen, or period.
The + after the character class indicates that the character in the list can appear one or more times.
So, the regular expression ([\w\d\-\.]+) will match one or more occurrences of word characters, digits, hyphens, or periods.
[\w\d\-\.] is a character class that matches any single character that is either a word character (\w), a digit (\d), a hyphen (\-), or a period (\.).
\w: Matches any word character, which includes letters, digits, and underscores.
\d: Matches any digit.
\-: Matches a hyphen character. The hyphen is escaped with a backslash because it is a special character in regular expressions.
\.: Matches a period character. The period is also escaped with a backslash.
+ is a quantifier that indicates the preceding character class ([\w\d\-\.]) should appear one or more times. In other words, it matches one or more of the specified characters.
The + lets it match one or more. Try it out on regex101.com
upvoted 4 times
...
This section is not available anymore. Please use the main Exam Page.CIS-SM Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
LeoSu
8 months, 1 week agofrankgerv
8 months, 2 weeks agoParagSanyashiv
10 months, 3 weeks agosnowblind
1 year, 2 months ago