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}]