Fix regexp, don't allow non-numerals in the input.