I have a program that I need to write for my computer coding class that involves only allowing a sequence of either the letter a or b, followed by any two numbers, and if this is not followed it just result in a error message and loop back to the question asking for their area code. I've been having difficulties with the entirety of our string unit and just can't seem to wrap my head around the ideas, and would really appreciate if someone here could show me how to do this, thanks!
Currently this is all I have done, the program doesn't require much it's just that pesky input restriction that I can't get.