I have the following regex pattern:
"[A-Z]{6,6}[A-Z2-9][A-NP-Z0-9]([A-Z0-9]{3,3}){0,1}"
and I want to validate a string with the following conditions
- allow only alphanumeric characters
- has length of only 8 or 11
- first 6 characters must all be uppercase letters
However, the above pattern is not working. What needs to be changed?
