#21 2020-05-23 21:44

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

Re: Change format and position of date

Karleesi wrote:

...
Thanks, it turns out like this:
Stefan-Steffi.2020.05.05.Testshowjpg
"skip extension" is still unchecked like you told me. Any idea? Almost there! big_smile

From where comes now the extension in your example? They wasn't there before.
For file names with extension, enable [x] skip extension, as ".05" is not the extension anymore in your example name, but "jpg".




FROM:
Stefan-Steffi.Testshow.2020.05.05.ext
Karleesi.Testshow.2019.04.04.ext

TO:
Stefan-Steffi.2020.05.05.Testshow.ext
Karleesi.2019.04.04.Testshow.ext

Use RegEx:
\A([\w-]+)\b(.*?)\.(\d{4}\.\d{2}\.\d{2})\b[\s\.]*
$1.$3$2
[x] skip extension
 


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

#22 2020-05-23 21:49

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

Re: Change format and position of date

Karleesi wrote:

It's great but it doesn't work with words like double nouns, for example Anna-Nicole. Date gets moved right after Anna. Is there a way to handle words like these as 1 word so the date gets moved right after Anna-Nicole, for example?

This  requires another surgical change in the regular expression, like follows:

Regular Expressions: Replace expression "\A([\w\-]+)\b(.+?)\b(\d{4}\.\d{2}\.\d{2})\b[\s\.]*" with "$1.$3$2"

Where the change consists of replacing "\w" with "[\w\-]".

Offline

#23 2020-05-23 21:58

Karleesi
Member
Registered: 2020-05-08
Posts: 34

Re: Change format and position of date

@Stefan: Thanks, it works. Just thought it was abvious, because as stated many times before, the files in my folders become the parent folder.
@den4b: Thanks, yours works, too!

Somehow I had to uncheck "skip extension" otherwise I would have got 2 dots...

When I'm done with my project I will send a donation to you guys. Your help is always amazing. You also talk to me in a way I understand it which makes it pretty easy to apply your suggestions. smile

Last edited by Karleesi (2020-05-23 22:06)

Offline

Board footer

Powered by FluxBB