#1 2019-12-30 12:24

Lauraq
Member
Registered: 2016-10-02
Posts: 86

difficult renaming capital letters ( brackets )

Hi smile
Is it possible to have all the text in lower case except the first letter and the content between the two brackets?
For example:

if I download named:

18 - Crack A Bottle (feat Dr. Dre & 50 Cent)

I want

18 - Crack a bottle (feat Dr. Dre & 50 Cent)


Another example

01 - Public Service Announcement (Feat Jeff Bass)

to

01 - Public service announcement (Feat Jeff Bass)


In practice, the content in parentheses doesn't have to be renamed and the song title has to be all lowercase except the first letter

Thanks smile

Offline

#2 2019-12-30 22:07

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

Re: difficult renaming capital letters ( brackets )

Your particular examples can be accomplished with the following renaming rules:

1) Regular Expressions: Replace expression "\A(\d+\s+-\s+)([^\(]+)" with "$1\L$2" (skip extension)
2) Regular Expressions: Replace expression "\A(\d+\s+-\s+)([^\(]+)" with "$1\u$2" (skip extension)

Here is the documentation for the Regular Expressions:
http://www.den4b.com/wiki/ReNamer:Regular_Expressions

Here is a quick demo:

renamer-sentence-case-between-number-and-brackets.png

Offline

#3 2019-12-31 14:38

Lauraq
Member
Registered: 2016-10-02
Posts: 86

Re: difficult renaming capital letters ( brackets )

You are fantastic! Happy New Year to you and to the whole forum smile

Offline

Board footer

Powered by FluxBB