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

Renaming with Redex

Community Beginner ,
Nov 03, 2021 Nov 03, 2021

Copy link to clipboard

Copied

Hello together,

I have one Field with semicolon seperated

 

Behandlungen 45 Sek 1:1; Treatments 45 Sec 1:1;

 

And I want to have

 

Behandlungen 45 Sek 1:1

 

My regex is ;.*

 

But it doesn't work

 

Can help me. Thanks

TOPICS
Batch , How to

Views

539

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 ,
Nov 03, 2021 Nov 03, 2021

Copy link to clipboard

Copied

One method:

 

Find:

(^.+)(; .*)

 

Replace:

$1

 

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 ,
Nov 03, 2021 Nov 03, 2021

Copy link to clipboard

Copied

Your original method worked for me. The method @Stephen Marsh suggested also worked.

 

gregreser_0-1635989455438.png

The only difference is that in your screenshot, the current filename is Behandlungen 45 Sek 1:1; Treatments 45 Sec 1:1;.mp4  Is that really the original filename or is it an aboration of the batch rename tool? I wouldn't think it's possible to have that filename in Windows.

 

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 ,
Nov 03, 2021 Nov 03, 2021

Copy link to clipboard

Copied

@gregreser 

 

A colon is indeed an illegal filename character, so 1:1 would not work, the screenshot shows 1-1...

 

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 ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

it doesn't work for me

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 ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

My mistake, I didn't see the attachment in the OP when posting my original reply.

 

Please attach or link to a sample file/s that contains such metadata.

 

It would also be helpful if you could type out exactly the final desired result of the rename so that it is clear what you want.

 

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 ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

This is the title

 

Behandlungen 45 Sek 1:1; Treatments 45 Sec 1:1

 

And I want to have filename

 

Behandlungen 45 Sek 1:1

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 ,
Nov 09, 2021 Nov 09, 2021

Copy link to clipboard

Copied

LATEST

Bridge will automatically change the : colon to a - hyphen, as colon's are an illegal filename character.

 

This screenshot shows an intermediate filename rather than the original filename with my previous regex:

 

meta-rename.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