Can you suggest a javascript regex to check the number format 1.00.999,000
here ‘.’ represents 100’s and ‘,’ represents decimal points.
Can you suggest a javascript regex to check the number format 1.00.999,000 here ‘.’
Share
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.
If your just asking for a number format for your exact match then
1.00.999,000 becomes
[0-9]\.[0-9]{2}.[0-9]{3},[0-9]{3}What I suspect you really want may be
so
two numbers, followed by any amount ofdot three numberfollowed by , between0 and 3 numbers. I could be wrong in interpreting the number format but I suspect your example of1.00.999,000should have an extra zero in the first grouping from the left (000 instead of 00) to make it uniform with the sample after it, or drop the dot between the 1.00.