... if (!match(@'<..\-:d:d\-:d:d:d:d:d>', enteredString)) info("please enter the input in this format AB-01-12345");