Skip to main content
Known Participant
Oct 26, 2022 11:33 AM UTC
Answered

How do you rename files, removing everything before a certain character, in bridge batch rename?

For example, in this case it's an underscore ( _ )

Original: 

Filename_Filenewname

New: 

Filenewname

 

I'd like to use the batch rename function in bridge to complete this task. 

thanks 

 

This topic is closed to new replies. Start a new post to keep the conversation going.
gregreser
gregreserCorrect answer
Legend
Oct 28, 2022 4:30 PM UTC

Try using this:

Find: ^\w+( \w+)*_

Replace with:  [leave blank]

4 replies

gregreser
Legend
Oct 26, 2022 4:08 PM UTC

You could use String Substitution and Regular Expression

Find: ^(\w+)(\_)

Replace with:  [leave blank]

 

Test this on a few copy files.

 

Translate
Known Participant
Oct 28, 2022 9:02 AM UTC

Thank you for your support, this works fantastic for single words in my batch of files. 

 

However I have a couple of file names that have spacing and numbers between them. 
i.e.
Orginal: 110File name 1_110New File name 1

New: 110New File name 1

 

Would it be possible to update the expression to cover these too? 

Thanks again 

Translate
gregreser
gregreserCorrect answer
Legend
Oct 28, 2022 4:30 PM UTC

Try using this:

Find: ^\w+( \w+)*_

Replace with:  [leave blank]

Translate