Capitalizing the first word in a filename

Advanced Renamer forum
#1 : 08/11-18 22:50
Vic Meisner
Vic Meisner
Posts: 3
I have a huge collection of zipped karaoke files with names like
Dk004-05 - Foreigner - Waiting For A Girl Like You.zip or Lg038-10 - Kinks, The - Ape Man. What I'd like to do is change the first word of the file name (ex: Sf004-01) to all caps (SF004-01). I know I have to use one of the "set pattern" options but I'm not sure what statement to put in the pattern box. I've been using Advanced Renamer for a whole 4 days, so I'm about as green as a spring tomato.

TIA for any help!


08/11-18 22:50
#2 : 09/11-18 10:42
David Lee
David Lee
Posts: 1125
Reply to #1:
Try the New case method selecting "Set pattern to upper case" and "Use regular expression" with the pattern: \w+


09/11-18 10:42
#3 : 10/11-18 17:39
Vic Meisner
Vic Meisner
Posts: 3
Reply to #2:
That set everything to all caps.


10/11-18 17:39
#4 : 10/11-18 17:54
Vic Meisner
Vic Meisner
Posts: 3
Reply to #3:
Never mind - I discovered that if the file directory name is the disc number I can use <DirName:1> to change the file name and still keep the track number.


10/11-18 17:54
#5 : 10/11-18 19:03
David Lee
David Lee
Posts: 1125
Reply to #3:
Sorry about that - the pattern should have been \w+-


10/11-18 19:03
#6 : 13/11-18 22:35
L B
L B
Posts: 74
Reply to #5:

Hi, I want to ask a related question. I have a few folder names that have ALL CAP words in the middle of the folder name, while the rest of it is in "first letter uppercase" format. I want to make these words also just "first letter uppercase" without affecting the rest of the folder name. How do I achieve this?

EX:

From: Indonesia_2011-09-08_BALI_Shrimp Restaurant_x112
To: Indonesia_2011-09-08_Bali_Shrimp Restaurant_x112

Using "set upper case first letter in every word" does not set the remaining letters of the word in lowercase.


13/11-18 22:35
#7 : 14/11-18 04:15
David Lee
David Lee
Posts: 1125
Reply to #6:

Use another instance of New Case to "Set lower case" before you "Set uppercase first letter".

That will also set X in"x112" to upper case - to deal with this add a third instance of New case using "Set pattern to lower case", with the regular expression _\w+\d*$


14/11-18 04:15 - edited 14/11-18 04:20
#8 : 14/11-18 04:58
L B
L B
Posts: 74
Reply to #7:

Ah, Thanks. I had figured this out. I was hoping there was a less method-y way.


14/11-18 04:58