by Stefan » Sat May 04, 2013 8:31 pm
BEFORE:
06-08-2011 - author {some text and numbers to be removed) (title).mp4
AFTER:
06-08-2011 - author (title).mp4
RULE:
Remove all between the curly bracket and the first closing parenthesis.
We use an regex to match everything before the curly bracket and store that in backreference group () 1. >>> "(.+)"
Then we match everything non-greedy till first closing parenthesis, which we have to escape by an backslash because it is a regex meta sign, followed by one space. >>> "{.+?\) "
(Note: non-greedy is not really needed here because we order in our regex that there has to be something after the closing parenthesis, so it can be only the first one in this example we mean)
Last we match everything till before the extension and store that in group 2. >>> "(.+)"
In the replacement we only have what we had matches in first and second backreferencing parenthesis groups (...).
USE:
RegEx(1)
Search: "(.+){.+?\) (.+)"
Replace: "\1\2"
Don't use the quotes "", they are only for clarifying.
"[ ] Include Ext." is unchecked.
"Options > Ignore... > File Extensions" is unchecked.
Select a few files in the Name column to see what happens in the NewName column.
More about RegEx there >>> http://www.bulkrenameutility.co.uk/forum/viewtopic.php?f=3&t=96
Remember to test this with test files first. And always do backups before you manipulate your important real files!
.