I want to generate a regular expression for the following situation.
- a input box should accept numbers and dot in the following format XXX.XX.
- It accepts also numbers as XX
- It accepts also numbers as X
- It accepts also numbers XX.XX
- It accepts also numbers X.XX
I did like this: /[0-9]{3}\.[0-9]{2}$/
, but it satisfied only point number 1.