Uppercase only the first 4 characters?

Bulk Rename Utility How-To's

Uppercase only the first 4 characters?

Postby shmellyman » Mon Apr 04, 2022 6:47 am

Is there a way to only apply uppercase to the first 4 characters of a file? I can't seem to figure it out.
shmellyman
 
Posts: 9
Joined: Thu May 06, 2021 9:13 am

Re: Uppercase only the first 4 characters?

Postby therube » Mon Apr 04, 2022 6:16 pm

This looks to work (but test & be sure):

1:RegEx, enable V2:
Code: Select all
Match:  ^(....)(.*)
Replace:  \U\1\E\2
therube
 
Posts: 1310
Joined: Mon Jan 18, 2016 6:23 pm

Re: Uppercase only the first 4 characters?

Postby shmellyman » Tue Apr 05, 2022 7:16 am

It works, thanks!
shmellyman
 
Posts: 9
Joined: Thu May 06, 2021 9:13 am


Return to How-To


cron