How to change the capitalizaion of one character

Bulk Rename Utility How-To's

How to change the capitalizaion of one character

Postby Ronstang » Fri Feb 18, 2022 9:42 pm

I have thousands of subtitlea files that I have a script that names them upon extracts them and the resulting filenames are simply:

Movie TItle.eng.srt
Movie Title.spa.srt

And I would like to change all of them to:

Movie Title.Eng.srt
Movie Title.Spa.srt

This way they will look better in Emby. I didn't write the script...because I know nothing of such things...but I have edited to now capitalize these files automatically upon their creation so I just need to process all my existing ones.

I assume I can just create two presets, one for English and one for Spanish and run them separately.

Thanks in advance.
Ronstang
 
Posts: 45
Joined: Tue Feb 09, 2021 2:14 am

Re: Capitalize 1st-letter in .spa or .eng at end of names

Postby Luuk » Sat Feb 19, 2022 5:05 am

Case(4)==Title does rename like the 2-examples, but to only rename .eng or .srt at the very end, can either use...

Replace(3) using Replace==\end\.eng|.spa and With==.Eng|.Spa -or-
RegEx(1) with a checkmark in "v2" using Match==(\.)(eng|spa)$ and Replace==$1\u$2
Luuk
 
Posts: 689
Joined: Fri Feb 21, 2020 10:58 pm

Re: How to change the capitalizaion of one character

Postby Ronstang » Sat Feb 19, 2022 9:16 am

Works like a charm Luuk, thanks so much as always. :D
Ronstang
 
Posts: 45
Joined: Tue Feb 09, 2021 2:14 am


Return to How-To