#1 2021-10-30 09:04

W3APONX
Member
Registered: 2021-10-30
Posts: 2

Find part of name and put in ()-parentheses

Help with Renaming a Folder and Contents


Hi All,

I'm quite new to this and needed to rename a lot of media files/sub folders in the following way:-

Current format:

Media Name - 2021.1080p

Need to rename too:

Media Name (2021).1080p

Could someone please show me how to do this as i have over 10,000 files/sub folders to rename like this and ReNamer Pro
would be the perfect tool too apply this.

Thanks in Advance
W3APONX

Offline

#2 2021-10-30 13:50

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

Re: Find part of name and put in ()-parentheses

Hello,

Try this RegEx rule:

1) Regular Expressions: Replace expression "(\d{4})(\..+)" with "($1)$2" ----> Uncheck Skip extension

From:

Media Name - 2021.1080p
Media Name - 2021.1080p.mp4

To:

Media Name - (2021).1080p
Media Name - (2021).1080p.mp4

If you like the ReNamer consider upgrading to Pro smile


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

Offline

#3 2021-11-02 17:47

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

Re: Find part of name and put in ()-parentheses

Hi and welcome.


W3APONX wrote:

needed to rename a lot of media files/sub folders ...


if you want to rename sub folders be sure to sort the list upside down first before starting to rename.
(else the sub folder is not found any longer as the parent folder may be renamed already)







My way FROM
Media Name - 2021.1080p.ext
TO
Media Name (2021).1080p.ext
TRY
Regular Expressions ( https://www.den4b.com/wiki/ReNamer:Rules:RegEx )
Expression: (.+) - (\d\d\d\d)\.(\d\d\d\d)p
Replace with: $1 ($2).$3
[_]Skip extension unchecked




Explanation for "(.+) - (\d\d\d\d)\.(\d\d\d\d)p":
(.+) - >>>>> match all till LAST hyphen
(\d\d\d\d) >> match four digits followed by literal dot followed by four digits and literal "p" >> \.(\d\d\d\d)p

More explanation can be found at https://www.den4b.com/wiki/ReNamer:Regular_Expressions


 


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

#4 2021-11-06 12:11

W3APONX
Member
Registered: 2021-10-30
Posts: 2

Re: Find part of name and put in ()-parentheses

Worked perfectly...Thank you Stefan!

Offline

Board footer

Powered by FluxBB