I am making an autocomp solution for my projects in Nuke and I want to be able to rename my RGB masks with their intended name.

So say these are my three RGB mask shuffle nodes stored in a list:

```
['RGB_boxes_01_-Box_red-Box_green-Box_blue',  'RGB_boxes_02_-Box_red-Box_green-Box_blue', 
 'RGB_boxes_03_-Box_red-Box_green-Box_blue']

```

Thay each contain red green and blue channels that I want to split an rename "Box\_red", "Box\_green" and "Box\_blue"

Now splitting the channels are easy, but renaming them to their intended name is harder. Anyone nows a good way to do this?

I thought it was a good idea to put "-" in front of every channel so that I can have a specific pattern when I am dividing, but so far I cant figure out how to do this.

Thanks!