Cisco
200-201 · Question #315
What matches the regular expression c(rgr)+e?
The correct answer is B. crgrrgre. The regular expression c(rgr)+e matches strings that follow the pattern: Starts with the character "c". Followed by the sequence "rgr" repeated one or more times. Ends with the character "e". Among the options provided: more times, but the "+" is part of the string, so it doesn't
Submitted by amina.ke· Mar 6, 2026Security Monitoring
Question
What matches the regular expression c(rgr)+e?
Options
- Ac(rgr)e
- Bcrgrrgre
- Ccrgr+e
- Dce
- Ec(rgr)e does not have the repetition of "rgr" more than once, so it does not match the pattern.
- Fcrgrrgre matches the pattern as it contains "rgr" repeated one or more times between "c" and
- Gcrgr+e doesn't match because the "+" symbol indicates that the "r" should be repeated one or
- Hce does not match the pattern as it does not contain the "rgr" sequence.
How the community answered
(21 responses)- B86% (18)
- C5% (1)
- G5% (1)
- H5% (1)
Explanation
The regular expression c(rgr)+e matches strings that follow the pattern: Starts with the character "c". Followed by the sequence "rgr" repeated one or more times. Ends with the character "e". Among the options provided: more times, but the "+" is part of the string, so it doesn't match the pattern.
Topics
#Regular expressions#Pattern matching#Log analysis
Community Discussion
No community discussion yet for this question.