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.