I'm looking for a regular expression in JavaScript that tests whether a string is a number with one or two digits before the decimal point and optionally a maximum of five digits after decimal point.
Examples of correct values:
- 12.345
- 12.12
- 1.3
- 1.12345
- 12
What would be the correct regex for this?