Splitting Polymer into backbone and sidechain

Hi all,

For an activity, we need to split a polymer (or representative monomer) apart into the back bone and side chain. So that we could find descriptors of back bone and side chain individually. Is there any component or any method available to do it in pilot script?

Thank you

Regards

Tinto