Jun-17-2020, 07:25 PM
(Jun-17-2020, 07:05 PM)buran Wrote:>>> 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'
Will I need to change the name = NNB-6a_v1_T01 Report manually so that it goes through all of the files?