I have a numberDecimal EditText which I want to validate using a regular expression. In validation what I want is:
EditText
Before the decimal point, th
You could just parse the number and check that it is < 1000 and that 10*number is an integer while num is not. It would probably be more readable too.