How to limit numbers for before and after the decimal point, something like before decimal should be from 0-30 and after decimal should be from 0-15
Correct: 30.15
Wrong: 30.16
Correct: 30.09 or 30.9
Correct: 0.15
Wrong: 0.16
Correct: 21.14
Wrong: 21.56
Looking for a regEx.