Page 1 of 1

rename long filenames

PostPosted: Wed Mar 11, 2020 9:57 am
by Stuermer
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

Re: rename long filenames

PostPosted: Wed Mar 11, 2020 12:50 pm
by therube
1:RegEx
Code: Select all
Match:  (.*?)_
Replace:  \1.edi


Match everything (lazy) up to the first _.
Include that part, & append .edi.