Hello everyone,
This is my first time posting here, I can not seem to find resources that I can apply in order to make this work!
I need to validate a 6 character string that is user input.
The first 2 characters HAVE to be IT, either upper or lower case and the last 4 characters can be any numbers... If the user inputs anything else, like for example TP2345 I need to print that the input was invalid.
I have read a lot about other types of validation, but I can not seem to apply them to this char inside of a string application...
output should look like this...
Enter a code for validation (e.g. IT8877): IT2258
Code: IT2258 is valid.
or
Enter a code for validation (e.g. IT8877): hu47hu
Code: hu47hu is not valid
First character is not an I or i
Second character is not a T or t
Fifth character is not a digit
Sixth character is not a digit
Any advice or sample code would be very much appreciated!!!
Thank you,
Allen