Yes, in the end you have to use that rather complicated regular expression that only remove duplicates.
So, if you do not have duplicates, then you don't have to dig into that thread.
To replace commas with semicoli, use an action of the type "Replace" (without regular expression)