nerdexam
Cisco

200-201 · Question #4

Which regex matches only on all lowercase letters?

The correct answer is A. [a-z]+. [a-z] represents a character class that matches any lowercase letter from 'a' to 'z'. The '+' indicates that the pattern [a-z] should occur one or more times consecutively.

Submitted by klara.se· Mar 6, 2026Security Concepts

Question

Which regex matches only on all lowercase letters?

Options

  • A[a-z]+
  • B[^a-z]+
  • Ca-z+
  • Da*z+

How the community answered

(58 responses)
  • A
    93% (54)
  • B
    2% (1)
  • C
    3% (2)
  • D
    2% (1)

Explanation

[a-z] represents a character class that matches any lowercase letter from 'a' to 'z'. The '+' indicates that the pattern [a-z] should occur one or more times consecutively.

Topics

#regular expressions#pattern matching

Community Discussion

No community discussion yet for this question.

Full 200-201 Practice