Page 1 of 1

How to change the capitalizaion of one character

PostPosted: Fri Feb 18, 2022 9:42 pm
by Ronstang
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.

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

PostPosted: Sat Feb 19, 2022 5:05 am
by Luuk
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

Re: How to change the capitalizaion of one character

PostPosted: Sat Feb 19, 2022 9:16 am
by Ronstang
Works like a charm Luuk, thanks so much as always. :D