How to change filename -> swap and apply title case

Bulk Rename Utility How-To's

How to change filename -> swap and apply title case

Postby Fabrizio » Sat Jan 23, 2021 11:37 am

Hi ,

I would like to know if it is possible to change file names from ex:

A.MARVEL.MakeYouHappy to Make You Happy - A.Marvel

or files like:

ANTICO.DreamerHoombaHoomba to Dreamer Hoomba Hoomba - Antico

Any input is appreciated !

Thank you!!
Fabrizio
 
Posts: 2
Joined: Thu Jan 21, 2021 10:02 pm

Re: How to create a script to change filename

Postby Luuk » Sun Jan 24, 2021 1:01 am

Greetings Fabrizio, Im thinking the easiest way is RegEx(1), but first putting the checkmark in "v2", then...
Match...
Code: Select all
([a-z])([A-Z])/g(?X)([A-Z.]+)\.(.+)
Replace...
Code: Select all
$1 $2(?X)$2 - $1

Then Case(4) can be set to "Title" if this good enough.
Luuk
 
Posts: 699
Joined: Fri Feb 21, 2020 10:58 pm

Re: How to create a script to change filename

Postby Fabrizio » Sun Jan 24, 2021 1:47 am

:D :D
Luuk wrote:Greetings Fabrizio, Im thinking the easiest way is RegEx(1), but first putting the checkmark in "v2", then...
Match...
Code: Select all
([a-z])([A-Z])/g(?X)([A-Z.]+)\.(.+)
Replace...
Code: Select all
$1 $2(?X)$2 - $1

Then Case(4) can be set to "Title" if this good enough.

Thank You very Much !! You are a Genius!!! It does work a treat!!
Fabrizio
 
Posts: 2
Joined: Thu Jan 21, 2021 10:02 pm


Return to How-To