This is what I have right now:
^[0-9]([,][0-9])?$
My problem is that i want to be able add more than one digit before and after my comma.
examples:
1,12
12,12
123,12
12,123
All above numbers are supposed to be valid.
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.
I’d suggest the following:
The
+‘matches the preceding item one or more times.’References: