rename long filenames

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

rename long filenames

Postby Stuermer » Wed Mar 11, 2020 9:57 am

Hi there,

I have to rename a few files in 1 Folder.
The files look like:
0000132419_txt_780dc3c0f1ea5db304e6ddff041d4857b432bc8208266c3a392d7257662f065a
0000132420_txt_e4c788fb15a2945f4ccec43a002b01d78d2fa99fcf8921ef68a0bf2abae7bf1f
0000132421_txt_ac31c54fd14d1aacc2300724f91e9534732e7fac684312bf8d6e2a4cf2e41fb8
I want to rename them to:
0000132419.edi
0000132420.edi
0000132421.edi

So I have to remove _+ everytink right of the _ and replace it with .edi.
I have never used BRU64.exe and no Idea how it is to do.
Can you help?

Thanks
Dirk
Stuermer
 
Posts: 1
Joined: Wed Mar 11, 2020 9:41 am

Re: rename long filenames

Postby therube » Wed Mar 11, 2020 12:50 pm

1:RegEx
Code: Select all
Match:  (.*?)_
Replace:  \1.edi


Match everything (lazy) up to the first _.
Include that part, & append .edi.
therube
 
Posts: 915
Joined: Mon Jan 18, 2016 6:23 pm


Return to BRU Support


cron