Page 1 of 1

Problem to rename - remove a suffix

PostPosted: Tue Jun 22, 2021 7:24 am
by rh_1363
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.

Re: Problem to rename - remove a suffix

PostPosted: Tue Jun 22, 2021 4:52 pm
by therube
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 ;-).)