#1 2024-01-18 18:08

dominusdj
Member
Registered: 2024-01-18
Posts: 2

Rearrange difficult file name

Hello....I'm trying in every way to rename many files but I can't find the right setting.

I have many files with different lengths and I need to create a rule that after the double character "__" up to the extension (excluding) it must be moved after the character ")"

I'll give you an example

File name:
PCC Y.17.59 (17,5db-0,62dt-SGP-50-60Hz-WOOW)_test123__MDFY.17.5-59-00.xls

Becomes:

PCC Y.17.59 (17,5db-0,62dt-SGP-50-60Hz-WOOW)__MDFY.17.5-59-00_test123.xls


Can anyone kindly help me?

Thanks a lot

Offline

#2 2024-01-18 18:47

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,440

Re: Rearrange difficult file name

You can achieve this with a Rearrange rule.

Split using an exact pattern of delimiters: ")_|__"
New pattern: "$1)__$3_$2"

(exclude the quote marks)

Offline

#3 2024-01-19 11:13

dominusdj
Member
Registered: 2024-01-18
Posts: 2

Re: Rearrange difficult file name

Thanks a lot, works!!!

Offline

Board footer

Powered by FluxBB