I need to extract a movie name from a filename like these...
Filename: 20150813 2159 - NBC +1 - Prometheus.ts
Movie Name: Prometheus
Filename: 20150831 2159 - CBS+1 - The Bourne Identity.ts
Movie Name: The Bourne Identity
Filenames are always formatted like: "A - B - C" where A is a date, B is a TV channel and C is the movie name.
The movie name might have spaces in it and possibly also the "-" character but "hopefully" not a "- " substring.
Example Strategy:
- The filename must end with a .ts
- Search from the end of the filename starting from the first character to the left of the .ts
- Working backwards (right to left) capture all the text up until the first character that is to the right of a "- " substring.
What is the Regex to do this please?
Cheers,
Flex