>>> name = 'NNB-6a_v1_T01-Report.xlsx' >>> name.replace('-Report', '').replace('NNB', 'Report') 'Report-6a_v1_T01.xlsx'
>>> name = 'NNB-6a_v1_Normal-Complete Report.xlsx' >>> name = name.split('-')[1] >>> f'Report-{name}.xlsx' 'Report-6a_v1_Normal.xlsx'
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs