Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

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

Community Beginner ,
Oct 26, 2022 Oct 26, 2022

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 

 

TOPICS
Batch , How to
1.1K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 2 Correct answers

Advocate , Oct 26, 2022 Oct 26, 2022

You could use String Substitution and Regular Expression

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

Replace with:  [leave blank]

 

Test this on a few copy files.

gregreser_0-1666800457398.png

 

Translate
Advocate , Oct 28, 2022 Oct 28, 2022

Try using this:

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

Replace with:  [leave blank]

Translate
Advocate ,
Oct 26, 2022 Oct 26, 2022

You could use String Substitution and Regular Expression

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

Replace with:  [leave blank]

 

Test this on a few copy files.

gregreser_0-1666800457398.png

 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 28, 2022 Oct 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 

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advocate ,
Oct 28, 2022 Oct 28, 2022

Try using this:

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

Replace with:  [leave blank]

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Oct 31, 2022 Oct 31, 2022
LATEST

Works great, thanks again

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines