Can you explain the rules? Looks something like
where fieldnx = replace(fieldn,'-','')
except your sample data desired output is all over the place
a) the ordering of fields is inconsistent
b) the number of hyphens at the start of the desired output is inconsistent
c) the number of hyphens are the end of the desired output is inconsistent
Maybe now you can see why no one is able to code this.
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.