Thank you for the response.
That does work but only with single title films. For films with more than a single word in the name eg:
Out.of.Africa.1985.REMASTERED.1080p.BluRay.x265 becomes
Out (of) or
The.Hurt.Locker.2008.1080p.Webrip.h265 comes out as:
The (Hurt)I'm managing to do this at the moment in 5 steps.
1. Replace (3) . with ' '
2. Remove everything after 1080p with RegEx (1)
- Code: Select all
(.*1080p)
\1
3. Remove ' 1080p' either with Replace (3) and the replace empty or Remove (5) last n 6
4. Remove everything after the year which is now the last 4 digits with RegEx (1)
- Code: Select all
(.*\d+)(?!.*\d)
\1
5. Use Add (7) Inset ( at pos -4 and suffix )
The regex to get it more efficient is beyond me. Couple of bits though. The year is always the last 4 digits before
1080p everything prior to the 4 year digits is the title. Everything between the year and 1080p is not required, everything after the 1080p can differ but is not required.
I should add I am looking to do this in bulk and it could be as many as significant numbers of files at a time. My aim would get something to do it in one pass regardless of length of film name.