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

Batch Rename - 2nd Hyphen

Community Beginner ,
Jun 17, 2019 Jun 17, 2019

I feel like there's probably an easy answer to this question but I couldn't find one in my search. I need to change the 2nd hyphen in these file names to an underscore. How would I make Bridge skip the first hyphen? I've attached a screenshot.

Screen Shot 2019-06-17 at 10.47.23 AM.png

826
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 1 Correct answer

Guide , Jun 17, 2019 Jun 17, 2019

2019-06-17_194200.jpg

From is:-

(.+-CHE)(-)(.+)

Or:

(.+-.+)(-)(.+)

Translate
Guide ,
Jun 17, 2019 Jun 17, 2019

2019-06-17_194200.jpg

From is:-

(.+-CHE)(-)(.+)

Or:

(.+-.+)(-)(.+)

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 ,
Jun 17, 2019 Jun 17, 2019

That works! Thanks.

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 Expert ,
Jun 17, 2019 Jun 17, 2019

I’d usually use capture groups as in SuperMerlin’s examples as I find them more intuitive than lookarounds, however, I pushed myself to find an alternative:

Find: -(?=\d+)

Change: _

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 ,
Jun 17, 2019 Jun 17, 2019
LATEST

That works as well! Definitely saved me some time. THanks.

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