LPIC-1 Exam 101 v5 (Linux Administrator) — Question 84

Which of the following regular expressions represents a single upper-case letter?

Answer options

Correct answer: B

Explanation

The correct answer is B, as the regular expression [A-Z] specifically matches any single uppercase letter from A to Z. The other options do not correctly represent a single uppercase letter: A uses a non-standard format, C incorrectly uses a negation symbol, D does not follow regex syntax, and E is not a valid regex expression.