Regular Expressions (Regex) to allow both decimals as wells as integers in JavaScript
Smith
2568
Points
74
Posts
|
Hi, I am trying to validate a number that may be decimal number decimal(19,2) or a integer value as
I want to do with regex in JavaScript. Thanks.. |
Answers
Mayank
194
Points
12
Posts
|
hi smith, Try this \d+(\.\d{1,2})?
Posted On:
18-May-2016 00:43
|
Jak
858
Points
132
Posts
|
I found this one [1-9]\d+(\.\d{1,2})
Posted On:
18-May-2016 00:46
|