Regex Tuesday Challenge - Week Five

The fifth Regex Tuesday challenge is to write a regular expressions which matches correctly formatted (with correct thousand seperators and decimal places). It should be able to match both main number syntaxes (10,000,000.45 and 10 000 000,45), and should not match invalid numbers such as 123.456.789.

To test a regular expression on the test cases below, type it into the text input. Each test case will be marked as passed or failed respectively - you are aiming to get as many test cases as you can to pass. Note that JavaScript must be enabled for this feature to work. The regex engine used is the JavaScript regex engine; it is similar to PCRE, but with a few differences.

Test cases (0/31)

124
match
1,024
match
2,000,204
match
3,000.6
match
8,205,500.4672
match
0.5
match
36,000.57
match
100,000
match
5
match
46
match
10.444444444444
match
1 024
match
9 999 352
match
10,19836
match
30 000,7302
match
0,5
match
47 372
match
.5
no match
1025
no match (no seperator)
1,5826,000
no match
,046
no match
100.
no match
2.2.2
no match
10,
no match
10,.5
no match
507
no match
507
no match
34 34
no match
3692 38
no match
36 047.
no match
47 .7
no match
Congratulations, your regex passes all the test cases! Remember to share this challenge.