Could someone give me the regex pattern and replacement pattern to replace blank thousands separators with commas? That is to say, 15 789 489 with 15,789,489.
Thanks.
Could someone give me the regex pattern and replacement pattern to replace blank thousands separators with commas? That is to say, 15 789 489 with 15,789,489.
Thanks.
Is this a search & replace operation or something else?
Are the numbers always like that or could there be these:
1 234 567 678
1 234 567
1 234
21 234 567 678
12 234 567
11 234
131 234 567 678
211 234 567
981 234
Or more?
Paul Filkin | RWS Group
________________________
Design your own training!
You've done the courses and still need to go a little further, or still not clear?
Tell us what you need in our Community Solutions Hub
sampleNumbers =
(
1 234 567 678
1 234 567
1 234
21 234 567 678
12 234 567
11 234
131 234 567 678
211 234 567
981 234
)
Loop, Parse, sampleNumbers, `n, `r
myResults .= RegExReplace(RegExReplace(A_LoopField, "\s+"), "(?<=\d)(?=(\d{3})+$)", ",") "`n"
MsgBox % myResults
Return
OR
I wanted to suggest a solution with "native" regex that does not allow program functions and loops.
I wanted to suggest a solution with "native" regex that does not allow program functions and loops.
yes, you are quite right.
I just wrote what I wanted to write (above code is AutoHotkey).
I am not interested in "Regex Match Autosuggest Provider" (what's that ?).
I, again, just wrote my Autosuggest Provider
What I am interested in is "get things done", nothing else.
Regards