How to validate such number input with one RegEx. Strings are not allowed. Two decimal positions after dot or comma.
Example:
123.34 1.2
Try This,
/^(\d+(?:[\.\,]\d{1,2})?)$/