The following are valid numbers for various financial displays depending on the region, etc:
1,000
1000.00
1,000,000.00
2.000.000,00
123748 # without commas
4 294 967 295,000
0.24
.24
24
24.
What would be a better approach to finding a regex for the above, doing one large regex or multiple regexes for each pattern? For example, an individual pattern being like:
no_thousands_separator = '\d+[.,]?\d{0,3}?