Skip to main content
Known Participant
October 26, 2022
Answered

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

  • October 26, 2022
  • 1 reply
  • 1046 views

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 has been closed for replies.
Correct answer gregreser

Try using this:

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

Replace with:  [leave blank]

1 reply

gregreser
Legend
October 26, 2022

You could use String Substitution and Regular Expression

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

Replace with:  [leave blank]

 

Test this on a few copy files.

 

Known Participant
October 28, 2022

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 

gregreser
gregreserCorrect answer
Legend
October 28, 2022

Try using this:

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

Replace with:  [leave blank]