【发布时间】:2023-02-13 21:36:20
【问题描述】:
我有一个这种格式的文件列表:
"stuff that happened B05T300 today.png"
"stuff that happened B05T301 today.png"
"stuff that happened B05T302 today.png"
"stuff that happened B05T303 today.png"
我想以两种方式重命名文件。
1. B05 needs to become B01
2. T300 needs to become T001, T301 -> T002, etc... essentially the Txxx will be xxx - 299.
Potentially also have the 0 chars removed immediately after the T. ie. T1, T10
【问题讨论】: