AFTER a check has been scanned and the MICR code has been generated from that scan, what can be check about that code other than counting the number of digits, to gain confidence that it is valid or at least internally consistent?
I already know that the MICR code is a 9-digit routing number that the checking-account belongs to. But else can be check about it? Does it follow any pattern that could give a hint if any digit has been read incorrectly?
E.g. this code simply checks for 9 digits (I'm using C# but it doesn't matter what language the answers employ):
'''C# Regex regex = new Regex(@"^[0-9]{9}$");
I would expect the answer to be true or false. I can then derive the appropriate error-description.