I need help: I want to validate in javascript my currency inputs that are in format:
1 234,78 (so there is space between 1000 and 2 decimals that are possible).
Examples:
50,25
50
1 150
1 150,44
1 000 001
1 000 001,25
Can you help me?
Thanks2
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.
^(\+|-)?(0|[1-9][0-9]{0,2}( [0-9]{3,3})*)(,[0-9]{1,2})?$