Rename files to put a hyphen in

Bulk Rename Utility How-To's

Rename files to put a hyphen in

Postby gonzo » Sat May 23, 2020 9:53 am

Hello,

I have over 1000 files like this below that have the work video at the end:

1941Video.mp4

I need to rename all so there is a hyphen between the name and the word video like this:

1941-Video.mp4

I just can't figure it out.

Please advise.
gonzo
 
Posts: 2
Joined: Sat May 23, 2020 9:49 am

Re: Rename files to put a hyphen in

Postby therube » Sat May 23, 2020 12:41 pm

1:RegEx
Code: Select all
Match:  (.*)([Vv]ideo)$
Replace:  \1-Video

In any file name that ends in 'video',
match everything up to the word 'video',
then stick a dash between.
therube
 
Posts: 1314
Joined: Mon Jan 18, 2016 6:23 pm

Re: Rename files to put a hyphen in

Postby gonzo » Sat May 23, 2020 4:28 pm

I guess I don't use the GUI for that?

Also is there a way to make the first letter lower case instead of uppercase?
gonzo
 
Posts: 2
Joined: Sat May 23, 2020 9:49 am

Re: Rename files to put a hyphen in

Postby trm2 » Sun May 24, 2020 3:52 am

Along with the RegEx provided,

Section #4: Case -
set to Lowercase

output becomes 1941-video.mp4

By the way, the BRU is the GUI. I believe you are referring to the criteria other than RegEx - but that is actually Section #1: RegEX in the criteria.
The BRC program is a separate program that is not GUI based, it is a command line utility. What is a GUI? - a user interface that allows you to interact
with the program graphically. BRC does not. So I am presuming that you meant that you don't have to use the other criteria that is not RegEx, but if
you want lowercase you have to use both.
trm2
 
Posts: 156
Joined: Wed Jan 15, 2020 12:47 pm


Return to How-To