How to pad a single digit in Title Name?
Posted: 21 Apr 2024, 15:58
I want to pad my series' titles with a leading zero, when the title is "Episode x" (just one digit, ie. 1-9).
My format expression covers this for Season/Episode, but I want to capture "Episode 1" and replace with "Episode 01" in the Title.
Basically, it should be something like: but I cannot find a way to get the backreference working.
Any help appreciated...
My format expression covers this for Season/Episode, but I want to capture "Episode 1" and replace with "Episode 01" in the Title.
Basically, it should be something like:
Code: Select all
{ fn.contains('Episode ' + /(\d{1})\b/ ) ? 'Episode 0' + $1 : fn }
Any help appreciated...