franco
Apr 10, 2017 - 21:13
I need to check wether the format of an input is "00 - 00 - 00" (12 characters without quotation marks) or not and then run block 1 or 2 based on result.
[0-9][0-9] - [0-9][0-9] - [0-9][0-9] won't do what I want if the input is, for example, "aaaa 00 - 00 - 00 aaa". I want to keep asking the user for input until the format is exactly 00 - 00 - 00, 12 characters.
Help?