#1 2022-11-26 17:39

fabrix76
Member
Registered: 2022-11-26
Posts: 1

COPY a portion of a file name and PASTE it in another location

Hi all,
I'm a newbie in this forum, I'm not a native english speaker and I don't know programming rules so, please, be patient and excuse me for my bloopers.
Here's my problem.
I have a few hundred files and I want to rename them so that a portion of the file name is copied at the end or at the begining.

For example:
Before: abcd(1234)efg.ext
After: abcd(1234)efg(1234).ext

or:

Before: abcd(1234)efg.ext
After: (1234)abcd(1234)efg.ext

I think it would be useful to see this kind of feature introduced in a future version of the program.

Can anyone help me?

Thank you all!

Offline

#2 2022-11-26 20:08

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

Re: COPY a portion of a file name and PASTE it in another location

Hello and welcome to the forum.



Before: abcd(1234)efg.ext
After  : abcd(1234)efg(1234).ext
USE: RegEx: Replace expression "(.+)(\(\d\d\d\d\))(.+)" with "$1$2$3$2" (skip extension)

or:

Before: abcd(1234)efg.ext
After  : (1234)abcd(1234)efg.ext
USE RegEx: Replace expression "(.+)(\(\d\d\d\d\))(.+)" with "$2$1$2$3" (skip extension)



See >> https://www.den4b.com/wiki/ReNamer:Rules:RegEx





Also I guess you could use the Rearrange rule
https://www.den4b.com/wiki/ReNamer:Rules:Rearrange
https://www.den4b.com/wiki/ReNamer:Rule … e_Examples


 


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

Board footer

Powered by FluxBB