Which of the following regular expressions represents a single upper-case letter?
Which of the following regular expressions represents a single upper-case letter?
The regular expression [A-Z] represents a single upper-case letter. It specifies a character class that includes any character from A to Z, which is the standard notation for upper-case letters in regular expressions.
A is incorrect because the syntax should be like this [:upper:] This is equal to [A-Z]
CORRECT
B is the answer correct.
B, very easy A is incorrect