and your regex, the [10-12] isnt doing what you think it is. Namely x-z works on two characters,x to z in this case. Try splitting it into two columns, and validate all the digits that can be in the first column, then validate all theones in the second one.