RegEx validation of decimal numbers with comma or dot

前端 未结 4 1484
离开以前
离开以前 2020-12-16 18:22

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

4条回答
提交回复
热议问题