hi
I use following regular expression to validate my numbers:
my validate numbers is :
my invalidate numbers is :
4 last invalid number don't validate by my regex
how I can fix my regular expression that (0.0 , 1.0, ..) can be invalid ?
sorry for may bad English
I use following regular expression to validate my numbers:
Code:
^[-]?\d{1,15}(\.\d{1,3})?Code:
0 to 9 max length <= 15
decimal numbers are optional and decimal place is <= 3 example : 1234.123
0.123Code:
0 to 9 max length > 15
decimal numbers are optional and decimal place is > 3 example : 1234.12345
1234.
.1234
0.0
1.0
1.00
1.0004 last invalid number don't validate by my regex
how I can fix my regular expression that (0.0 , 1.0, ..) can be invalid ?
sorry for may bad English