3 ms·
Doesn't work with i18n (some countries use , instead of . as the decimal separator).
by greiskul 4y ago
Doesn't work with i18n (some countries use , instead of . as the decimal separator).
- ascar 4y agoActually the majority of the countries use the comma. Though dot wins by population as China and India use it. https://en.m.wikipedia.org/wiki/Decimal_separator https://en.m.wikipedia.org/wiki/Decimal_separator
- darepublic 4y agoFwiw the pattern can be dynamic. But at that point as others have noted might be better to have a dedicated validator