Which regular expression matches "color" and "colour"?
A.
colo?ur
B.
col[0−8]+our
C.
colou?r
D.
col[0−9]+our
The Answer Is:
A
This question includes an explanation.
Explanation:
The regular expression that matches both “color” and “colour” is colo?ur. In this expression, the ? denotes that the preceding character u is optional, meaning it may appear zero or one time. This allows the expression to match both the American spelling “color” and the British spelling “colour”.
References := Understanding regular expressions is fundamental in various computing tasks, including cybersecurity operations. The Cisco Cybersecurity Operations Fundamentals (CBROPS) material covers the use of regular expressions for searching through logs and data, which is a critical skill for a cybersecurity analyst.
200-201 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"