Page 1 of 1

Batch Renaming

Posted: 03 May 2023 17:47
by audiom3
Hi everyone. I just bought a lifetime update key thinking this would be a simple thing to use over Windows File Explorer. But I am having some difficulty with a command. Sorry to start a new thread over something that is no doubt simple for most of you. I am trying to batch rename (?) my bluray movies & series rips. There can be up to 26 files in each season which look like this:

Series Name (1997) S1E01_t01.mkv
Series Name (1997) S1E02_t02.mkv
Series Name (1997) S1E03_t03.mkv
Series Name (1997) S1E04_t04.mkv
Series Name (1997) S1E05_t01.mkv
Series Name (1997) S1E06_t02.mkv
Series Name (1997) S1E07_t03.mkv
Series Name (1997) S1E08_t04.mkv

I have the extension hidden but it shows up whilst editing, so I've added it (.mkv) to each file as above. What I want to do is simply remove the _txx after each title. Where xx equals the track number found on the disc itself in the order it is read. I tried to send a PM but being as I am a new member, the board would not allow. Hopefully this is ok. Thank you for any help.

Re: Batch Renaming

Posted: 03 May 2023 18:38
by highend
The usual pattern based answer would be:

Select the files to be renamed, right click -> Rename Special -> RegExp Rename...

(_t\d+?)(\.[^.]+?)$ > $2

Re: Batch Renaming

Posted: 03 May 2023 19:34
by audiom3
@highend, thank you very much. I will try this tonight after work. Much appreciated!