Though Java already has a character type and char keyword to represent and manipulate characters, the language also requires a Character class for two reasons: Character c1 = new Character ('A'); ...
A regex of the form [:alpha:]{2}\d{3} should do the trick. If your regex engine doesn't support [:alpha:], use [a-zA-Z] instead.
Java’s character and assorted string classes offer low-level support for pattern matching, but that support typically leads to complex code. For simpler and more efficient coding, Java offers the ...