I have a regex to insert commas in an integer:
(?<=\d)(?=(\d{3})+$)
1829383839 ==> 1,829,383,839
This regex is also covered by the question: Insert commas into number string
However, I'd also like to expand the regex to be able to do the commafication on decimal numbers. For example:
1829383839.2937484 ==> 1,829,383,839.2937484
How could this be done?