I do not understand, what your expect output correctly, but the below code may helpful for you:
app.findGrepPreferences = app.changeGrepPreferences = null;
app.findGrepPreferences.findWhat = "\\d+\\S+";
Above code find the digit upto the white space comes. It should cover your problem upto 80% only.
thanks for your reply
I want to separate the numbers to decimals and thousands, dot(.) for decimals (end of one or two digits) and space( ) for thousands (before the decimal points, thousands separator should space( ).
EX: 1 123 456.75
between number to number there may be a dot, space or comma, it should be changed to dot(.) for decimals and space( ) for thousands.
.. but i want to find each type in a single find and change
Why? Doing them one at a time is 1. about as fast, 2. less error-prone, 3. easy maintainable (you can easily add more variations).
You need at least 2 GREPs -- one to change 'any' thousands separator to space, and one to change 'any' decimals separator to period.
For the first, change (?<=\d)[., ](?=\d\d\d) to just a space. For the second, change (?<=\d)[., ](?=\d\d(?!\d)) to a period.