I have to limit the data entered in the text box using the regexp for the following: Exs:
- 1,2,3
- 2.2,3.1,3
and if the user leaves the text box after entering 1.2,2,3. I have to remove the dot after 3 and save.
I started of restricting to enter only dot or comma with the regexp "([.,]{1})" but the text box accepts one dot whereas it allows to enter 3 commas.