SyntaxFix
Write A Post
Hire A Developer
Questions
Your solution is correct, but there is some redundancy in your regex. The similar result can also be obtained from the following regex:
^([A-Z]{3})$
The {3} indicates that the [A-Z] must appear exactly 3 times.
{3}
[A-Z]