Reputation: 59
I am using this regular expression in Notepad++ to find numbers which need a thousand separator:
("value": "\d{1,3}|\G\d{3})(?=(?:\d{3})+(?!\d))
It's working fine, but I need to replace the string with the very same string with an added period (dot) at the end (I'm in Italy and we use a dot as thousands separator).
I'm not an expert on regular expressions (I copied and modified the one above to suit my needs) so I didn't get any results. The find works, the replace doesn't (for instance \1\.
).
Can somebody help me? Thanks.
Upvotes: 0
Views: 633
Reputation: 19423
You can use the following as a replacement string:
$1.
I have tested it and it is working pretty well, you just need to make sure the file is saved to disk at least once before you try to make any replacements, otherwise it won't work.
Upvotes: 1