For the RVDW example (and your earlier one) try
=LEFT(A1,3)&RIGHT(A1,3)&MID(A1,3,FIND("-",SUBSTITUTE(A1,"-","~",1))-FIND("-",A1))
With the possibility of multiple - it gets much more complicated. One way would be to use Data > Text to columns, delimited with - as the delimiter to split the codes across columns, then use a concatenate formula to reassemble the codes.