Hello,
I have a table with 2 columns called catcode and prodcode and an example
would be like this:
catcode | prodcode
home-frag-cd | H-ACP1003
lighting-cd | H-AR1009
bed-candles-ys | H-BSC1005
What I need to do is take whatever comes after the last "-" in catcode and
add it and the "-" to the end of prodcode. So the result on the above
would be:
catcode | prodcode
home-frag-cd | H-ACP1003-cd
lighting-cd | H-AR1009-cd
bed-candles-ys | H-BSC1005-ys
If it helps, the last 3 characters of catcode are always the "-" plus the
suffix that needs to be moved.
How can I do this?
Thank you.