How to check a string is numeric positive and possibly a comma as decimal separator and two decimal places maximum.
Example
10.25 is true
10.2 is true
10.236 is false theres 3 decimal
10.dee is false
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
or you can use this regexp
if you want both comma and dot as allowed separator then