Please assist with the proper RegEx matching. Any 2 letters followed by any combination of 6 whole numbers.
These would be valid: RJ123456 PY654321 DD3212
[a-zA-Z]{2}\d{6}
[a-zA-Z]{2} means two letters \d{6} means 6 digits
[a-zA-Z]{2}
\d{6}
If you want only uppercase letters, then:
[A-Z]{2}\d{6}