I am trying to come up with a regex to identify different format of numerals like 1000 1 000 and 1,000 as well as 1000000 1 000 000 etc. I tried the following
1000
1 000
1,000
1000000
1 000 000
(?<=(\s|,))\d{1,}(?=(\s|,))
but I need it to include the space or comma.
Have you tried \d+([\s,]*\d*)*? Didn't get to test it, but I think it should work
\d+([\s,]*\d*)*