Hello all, I am working on a project and am having a bit of an issue with one of the requirements. Basically, I have to read a 6 character string input from my user and error check that the character is in the following format:
Some of the requirements are working. If a user were to enter ABC123 the program goes as it should. If the user enters ABC1234 the program gives them the message that there input contains more than 6 characters as it should. If the user enters ABCDEF the program prompts them to enter a correctly formatted string. If they enter abca12 the program processes like normal even though it should ask them to re-enter the string. If they enter 123abc the program asks them to re-enter twice (going through the loop). Hopefully this makes sense. Not looking to cheat, just hoping someone can give me some pointers or point me to a better way of accomplishing this task.