How can I write a regular expression that validates an input text box that should contain only decimal values? The value can have at max 3 decimals (but also none) with comma as the separator.
For example, these values given below are valid:-
1,234 1,23 1,2 1
These are not valid:
1,2345 (too many decimal numbers) A (a letter is not a number) (a space or string empty) 1.234 (used a dot instead of a comma)
,1
valid, for that matter?