SyntaxFix
Write A Post
Hire A Developer
Questions
\d*\.\d*
Explanation:
\d* - any number of digits
\. - a dot
\d* - more digits.
This will match 123.456, .123, 123., but not 123
123.456
.123
123.
123
If you want the dot to be optional, in most languages (don't know about jquery) you can use
\d*\.?\d*