How to put leading 'the' at the end of the title?
Posted: 13 Mar 2019, 14:43
I'm sure this has been asked a million times, but I didn't really find out how to do it...
So there's a number of things I want to move to the end of a movie title:
- the, a, an
- le, la
- der, die, das
...and, obvisouly, I want to end up with 'Sting, the' instead of 'The sting'.
Would it be possible to have all this stuff in a small little .txt-file, so it doesn't clutter up my format expression?
right now my expression looks like this:
Oh, and (completely unrelated): Is it possible to have a multi-line editor for this expression in filebot? Or is it always just one line, and if my expression gets more complex its best to use another editor and copy/paste into filebot?
So there's a number of things I want to move to the end of a movie title:
- the, a, an
- le, la
- der, die, das
...and, obvisouly, I want to end up with 'Sting, the' instead of 'The sting'.
Would it be possible to have all this stuff in a small little .txt-file, so it doesn't clutter up my format expression?
right now my expression looks like this:
Code: Select all
{n.colon(":")} [{y} - {director.replaceFirst(/(\w)(\w+) (\w+)/, '$1. $3')} - {(minutes/60) as int}h{minutes-(((minutes/60) as int)*60)}m - {genres.take(3).join(', ')} - {actors.take(2)*.replaceFirst(/(\w)(\w+) (\w+)/, '$1. $3').join(', ')} - {fn.matchAll(/deutsch|deu|english|eng|french/).join()} - {rating}]