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

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

Community Beginner ,
Oct 26, 2022 Oct 26, 2022

Copy link to clipboard

Copied

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

Views

598

Translate

Translate

Report

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

Community Expert , 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

 

Votes

Translate

Translate
Community Expert , Oct 28, 2022 Oct 28, 2022

Try using this:

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

Replace with:  [leave blank]

Votes

Translate

Translate
Community Expert ,
Oct 26, 2022 Oct 26, 2022

Copy link to clipboard

Copied

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

 

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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 

Votes

Translate

Translate

Report

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 Expert ,
Oct 28, 2022 Oct 28, 2022

Copy link to clipboard

Copied

Try using this:

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

Replace with:  [leave blank]

Votes

Translate

Translate

Report

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

Copy link to clipboard

Copied

LATEST

Works great, thanks again

Votes

Translate

Translate

Report

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