I\'m validating user input from a form.
I parse the input with NumberFormat, but it is evil and allow almost anything. Is there any way to parse number more strict?
There are many ways to do that:
matches("\\d+")
javax.validation
IntegerValidator