I have a string and I want to clean it, for that I am using multiple replace commands.
Is there a better way to do it?
a = '[[<Package 9.00x6.00x5.60>, <Package 8.75x6.60x5.60>]]'
a.replace("[<Package ","").replace(">]","").replace("<Package ","").replace(">","")
Result:
'[9.00x6.00x5.60, 8.75x6.60x5.60]'