Understanding Cisco Cybersecurity Operations Fundamentals (CBROPS) — Question 284
Which regex matches only on all lowercase letters?
Answer options
- A. [aגˆ’z]+
- B. [^aגˆ’z]+
- C. aגˆ’z+
- D. a*z+
Correct answer: A
Explanation
The correct answer is A, as the regex [a-g]+ specifically matches one or more occurrences of lowercase letters from a to g. Option B, [^a-g]+, matches any character that is not a lowercase letter from a to g, while C and D do not correctly define a range for lowercase letters.