Problem to rename - remove a suffix

Bulk Rename Utility How-To's

Problem to rename - remove a suffix

Postby rh_1363 » Tue Jun 22, 2021 7:24 am

Hi
My name is Reza.
I’ve used your software for rename my files.
Today I face a problem to rename my files. I’ve tried lots of method, but it hasn’t worked.
Please help me to find the solution.
I have lots of file downloaded from youtube and all of them have special suffix at the end (some trivial code). I want to remove these trivial codes at the end of my files.
For example this file has this name:
God_Delusion_by_Richard_Dawkins_[C85pvi87WK8]_[tag18].mp4
And I want to remove this: _[C85pvi87WK8]_[tag18]
I know the pattern is: _[???????????]_[?????]
But I couldn’t find a correct method to remove this irritating suffix.
In addition you can see the screenshot of my files in attachment.
I need your help to solve my problem.
Thanks a lot.
rh_1363
 
Posts: 1
Joined: Tue Jun 22, 2021 7:19 am

Re: Problem to rename - remove a suffix

Postby therube » Tue Jun 22, 2021 4:52 pm

If the names are always in the format you've shown...

1:RegEx, enable Simple
Code: Select all
Match:  %1_[%2_[
Replace:  %1

Match anything up to _[
Match anything from there up to the second _[
Only retain the initial match

Code: Select all
God_Delusion_by_Richard_Dawkins_[C85pvi87WK8]_[tag18].mp4
->   God_Delusion_by_Richard_Dawkins.mp4



(12 hours. That sounds good for a lazy rainy day ;-).)
therube
 
Posts: 1024
Joined: Mon Jan 18, 2016 6:23 pm


Return to How-To