[AN][AN][N][N][N][AN][AN] where AN is alphanumeric upper case character and N is a numeric character
What I'm doing is to save the string into a variable and then check it against a define pattern:
myPattern.matches("([A-Z0-9]{2})([0-9]{3})([A-Z0-9]{2})");
Apparently this is not the way to do it as it matches strings like "AZS..34"


Sign In
Create Account

Back to top









