I’m using this regular expression to make a textbox allow a number with 6 digits and two decimal places:
var regEx = /^\d{0,6}(,\d{0,2})?$/
Now, I want to make it allow the same thing but with a thousand separator.
Eg: I want 1321,54 to be 1.321,54.
Thank you.
So, you want this?
It just adds the case where the 4, 5 or 6 pre-decimal digits are separated by a dot in the usual place.