Here's my expression:
Code: Select all
{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[:]/, "-")}/{episode.special ? 'Season 0' : 'Season '+s}/{n.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[:]/, "-")}.{episode.special ? '00X'+special.pad(2) : {(episode.season ? s : 1).pad(2)}+'X'+{e.pad(2)}}.{t.replaceAll(/[!?.]+$/).replaceAll(/[`´‘’ʻ]/, /'/).replaceAll(/[:]/, "-").replacePart(' ($1)')}
Code: Select all
{episode.special ? '00X'+special.pad(2) : {(episode.season ? s : 1).pad(2)}+'X'+{e.pad(2)}}

I'm too new to post links:
https://pastebin.com/ZFRiv5B3
I realize the expression is overblown for what it does, but I hope it isn't too difficult to discern. If there is any easier way to land at the same result, I'm all ears. As you can see from the Screenshot, I can't use it the way it is now.
I've been a huge fan of this software since converting over from "theRenamer"... So much so, that I'm not really in the habit of reviewing the potential output before hitting "Rename". I realize the preview is meant to guard against these types of mistakes, but because I wasn't paying close enough attention, I now have to find and fix all the files it incorrectly named.
Any help would be appreciated.