Skip to main content
Known Participant
November 3, 2021
Question

Renaming with Redex

  • November 3, 2021
  • 1 reply
  • 977 views

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

This topic has been closed for replies.

1 reply

Stephen Marsh
Community Expert
Community Expert
November 3, 2021

One method:

 

Find:

(^.+)(; .*)

 

Replace:

$1

 

gregreser
Legend
November 4, 2021

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

 

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.

 

Stephen Marsh
Community Expert
Community Expert
November 4, 2021

@gregreser 

 

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