Cisco
200-201 · Question #33
Which regular expression matches "color" and "colour"?
The correct answer is C. colou?r. The question mark indicates zero or one occurrences of the preceding element. For example, colou?r matches both "color" and "colour".
Submitted by takeshi77· Mar 6, 2026Security Monitoring
Question
Which regular expression matches "color" and "colour"?
Options
- Acolo?ur
- Bcol[0-8]+our
- Ccolou?r
- Dcol[0-9]+our
How the community answered
(32 responses)- A3% (1)
- B3% (1)
- C81% (26)
- D13% (4)
Explanation
The question mark indicates zero or one occurrences of the preceding element. For example, colou?r matches both "color" and "colour".
Topics
#regular expressions#log analysis#pattern matching
Community Discussion
No community discussion yet for this question.