Make Part of name Upper Case

Post any Bulk Rename Utility support requirements here. Open to all registered users.

Make Part of name Upper Case

Postby mrtanner87 » Thu Mar 23, 2023 2:01 am

I have multiple folders that are names as such:-
Surname, First Name in that Case and I would like to rename them to SURNAME, First Name.
Is that possible?

Thanks in advance

MrT
mrtanner87
 
Posts: 3
Joined: Thu Mar 23, 2023 1:58 am

Surname, FirstName ---> SURNAME, FirstName

Postby Luuk » Thu Mar 23, 2023 3:43 am

Greetings MrT.
Filters(12) should only have a checkmark inside for "Folders" and maybe also "SubFolders"?
And if the names do always have english letters, then can add some more settings like...

Regex(1) needs a checkmark inside for "v2", so then a "Match" and "Replace" something like...
^(?i)([a-z]+, )(?=[a-z]+$)
\U$1

But if the names might can also have other symbols like "-", can put those symbols in front of a-z.
So like [-a-z] would also match any of your names with also having a "-" symbol somewhere inside of them.
If adding more [symbols], just put "-" at the very beginning, because otherwise "-" says "range of characters".
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: Make Part of name Upper Case

Postby mrtanner87 » Thu Mar 23, 2023 4:05 am

Luuk,

Thanks for the speedy reply. Sorry I don't quite understand what you mean.
I want to change say Smith, John to SMITH, John
Where in your solution does it say to change the case?

Thanks

MrT
mrtanner87
 
Posts: 3
Joined: Thu Mar 23, 2023 1:58 am

Surname, FirstName ---> SURNAME, FirstName

Postby Luuk » Thu Mar 23, 2023 4:43 am

The example will uppercase anything with only english-letters, so like in your example..... "Smith, John" -----------> "SMITH, John.
But not any names also having other symbols, so if having any surnames like................ "Smith-Jones, John" ---> (not renamed)

The "\U$1" inside of the Replace is what says to "Uppercase Group-1".
Group-2 in the Match is just a lookahead, so it must still be matched, but wont be edited.
Luuk
 
Posts: 706
Joined: Fri Feb 21, 2020 10:58 pm

Re: Make Part of name Upper Case

Postby mrtanner87 » Thu Mar 23, 2023 5:26 am

Thanks mate. Worked like a charm!!!

MrT
mrtanner87
 
Posts: 3
Joined: Thu Mar 23, 2023 1:58 am


Return to BRU Support