I have a TextEdit and need to limit its input to the following type of formats:
- 00.000
- 0.000
- 00.00
- 0.00
- ...
There can be up to 3 decimal places. Integer part is not required.
The closest thing I've found is MaskType = Numeric with ###.### mask. However, this doesn't accept all zeros, which is a requirement.
Any suggestions?
ADD: I'm thinking of 0{0,3}\.0{0,3} with MaskType = RegEx. Is it a suitable choice?
Looks like you've answered your own question. Your RegEx looks fine.
If you meant to allow non-zero values too, such as 12.345 or 001.010, then the mask should be
[0-9]{0,3}\.[0-9]{0,3}.