#1 2023-01-20 13:29

Tori
Member
Registered: 2023-01-20
Posts: 5

How to make a rule for Rearrange

I have files named date.month.year ххх.ext How do I write in configuration to rearrange to year.month.date xxx.ext? Tried to figure out the configuration according to help file, but nothing works.

Last edited by Tori (2023-01-20 13:47)

Offline

#2 2023-01-20 19:18

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: How to make a rule for Rearrange

Hi and welcome, Tori.

You may want to check out the Reformat Date rule first?
https://www.den4b.com/wiki/ReNamer:Rules:ReformatDate




 


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#3 2023-01-21 10:40

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

Re: How to make a rule for Rearrange

As for the Rearrange rule, you can use the following configuration:

Split by exact pattern of delimiters: ".|.| "
New pattern: "$3.$2.$1 $4"
Skip extension: YES

(Exclude the quote marks)

Offline

#4 2023-01-22 16:57

Tori
Member
Registered: 2023-01-20
Posts: 5

Re: How to make a rule for Rearrange

Stefan wrote:

Hi and welcome, Tori.

You may want to check out the Reformat Date rule first?
https://www.den4b.com/wiki/ReNamer:Rules:ReformatDate
 

Thank you so much, I missed this variant of the rule. I corrected the date in all the files.

Last edited by Tori (2023-01-22 17:03)

Offline

#5 2023-01-22 17:03

Tori
Member
Registered: 2023-01-20
Posts: 5

Re: How to make a rule for Rearrange

den4b wrote:

As for the Rearrange rule, you can use the following configuration:

Split by exact pattern of delimiters: ".|.| "
New pattern: "$3.$2.$1 $4"
Skip extension: YES

(Exclude the quote marks)

Alas, it didn't work out. I had the file name "13.10.2020 1.doc", created a rule by copying what You wrote, the result was the file name is "2020 1.10.13 .doc".

Offline

#6 2023-01-23 12:52

jogiwer
Member
From: Germany
Registered: 2022-11-05
Posts: 66

Re: How to make a rule for Rearrange

Tori wrote:

Alas, it didn't work out. I had the file name "13.10.2020 1.doc", created a rule by copying what You wrote, the result was the file name is "2020 1.10.13 .doc".

Looks like you have missed the blank at the end of the delimiters here. Resulting in:

  1. "13"
  2. "10"
  3. "2020 1"
  4. ""

This got rearranged as

"2020 1"."10"."13" ""

Offline

#7 2023-01-28 21:12

Tori
Member
Registered: 2023-01-20
Posts: 5

Re: How to make a rule for Rearrange

Here I am again sad
I can't figure out how to correctly rearrange titles. Let's say I have a file with a name of four words (X X X X_01).mp4 and a number at the end. I need to put the number and _ at the beginning, and leave the rest unchanged. Tried all the options, it does not work.

Pleeease, help!

Offline

#8 2023-01-28 21:57

Stefan
Moderator
From: Germany, EU
Registered: 2007-10-23
Posts: 1,161

Re: How to make a rule for Rearrange

FROM:
x x x x_01.ext
xx xxx x x abc def_02.ext
TO:
_01 x x x x.ext
_02 xx xxx x x abc def.ext


Try
1) Rearrange: Split by delimiters "_", New pattern "_$2  $1" (skip extension)


Explanation:
The $1 "container" capture all till the underscore
The $2 gets all after the underscore
The underscore, used as delimiter, is removed by the rule.
So in the result use the $1 and $2 "container" in the wanted order
and just add the underscore and need space manually by hand.





 


Read the  *WIKI* for HELP + MANUAL + Tips&Tricks.
If ReNamer had helped you, please *DONATE* to Denis or buy a PRO license. (Read *Lite vs Pro*)

Offline

#9 2023-01-28 22:19

Tori
Member
Registered: 2023-01-20
Posts: 5

Re: How to make a rule for Rearrange

Thank you so much!
I think I realized my mistake, I thought each word was a separate container.

Offline

Board footer

Powered by FluxBB