remove after ._ and ._ itself on nested folders

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

remove after ._ and ._ itself on nested folders

Postby Raafat.Jeapar » Tue May 17, 2016 7:44 pm

Dears,
i am new here, my issue is that i need to rename all the files in a very nested folder structures.
what i need is to delete what ever comes after ._1
i have the following issue.

i have thousands of files which got decrypted and the extension is changed to ._10-XXXXXXXXXXXXXXXXX
damaged files look like this
xyz.docx
xyz.docx.10-xxxxxxxxxxxxxxx
so now i need to remove this extension on all the folder if found without removing the actual extension.
what filters or actions should i choose.
many thanks in advance
Raafat.Jeapar
 
Posts: 1
Joined: Tue May 17, 2016 7:34 pm

Re: remove after ._ and ._ itself on nested folders

Postby therube » Fri May 20, 2016 8:20 pm

Renaming Options (menu item)
-> Ignore => File Extensions (it should be checked)

1:Regex

Match: (.+)(.10-)
Replace: \1

(This assumes you don't have a file name that includes ".10-".)


Note that your examples are not consistent - if I'm reading correctly, so adjust as needed.

Code: Select all
._1
._10-XXXXXXXXXXXXXXXXX
.10-xxxxxxxxxxxxxxx


Suppose it would be better to escape the (.) in the (second part of) Match, yes:

Match: (.+)(\.10-)
therube
 
Posts: 1319
Joined: Mon Jan 18, 2016 6:23 pm


Return to BRU Support