I have various strings in a document of the type:
And I need to replace them to get:
The only criterion is that it only affects , characters that are between two ~
I've got (~)(,+)(~) to find all the comas I need.
I can get it to replace ~,~ with ~x~ but when there are multiple comas it only replacing with one ,
So ~,,,,,,~ becomes ~x~
Any idea how to get multiple replacements like this?