#1 2020-06-09 08:44

xyberz
Member
Registered: 2020-06-09
Posts: 1

How to put a year inbetween parenthesis? e.g. 2020 > (2020)

Tried searching to see if anyone had already posted something similar and couldn't find anything so hopefully you guys can help with the right way to do this.

Basically just looking to put a year in a filename into parenthesis.  Example below:


Testing file 2020.rar

to

Testing file (2020).rar

Offline

#2 2020-06-09 14:45

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

Re: How to put a year inbetween parenthesis? e.g. 2020 > (2020)

Hi and welcome.

Question: is that always only ONE number in your filenames,
and / or always the last part before the extension dot, and / or always exactly 4 digits?

Then you could use the below Regular Expression rule


FROM:
Testing file 2020.rar
TO:
Testing file (2020).rar

USE:
Regular Expression
Search: ^(.+) (\d\d\d\d)$
Replace: $1 ($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

#3 2020-06-09 22:39

eR@SeR
Senior Member
From: Земун, Србија
Registered: 2008-01-23
Posts: 354

Re: How to put a year inbetween parenthesis? e.g. 2020 > (2020)

Hi.

xyberz wrote:

Tried searching to see if anyone had already posted something similar and couldn't find anything

Similar question has been posted here Regex match before / after?.


TRUTH, FREEDOM, JUSTICE and FATHERLAND are the highest morale values which human is born, lives and dies for!

Offline

Board footer

Powered by FluxBB