Pattern with input [0-9]

When enter only one number that is valid but if enter more than 2 that is invalid? The [0-9] not contain all numbers?

https://jsfiddle.net/p59p93rf/

Thanks

It will match just a single character that is a digit. If you want to check for a string of digits, use [0-9]+