I have read through the forum but cannot seem to get the behavior I am looking for out of the regular expression capability. I am looking to simplify the name convention of various files I import such that the following inputs:
the.title.goes.here.S01E01.word[s].[720p,1080p].word[s].mkv
the title goes here S01E01 word[s] [720p,1080p] word[s].mkv
results in the standard naming convention of:
The Title Goes Here.s01e01.[720p,1080p].mkv
For the above example the braces indicate an "OR" situation when describing the input file names but would always prefer spaces between the capitalized words in the title followed by the use of lower case in the season and episode abbreviations as well as the removal of all other words apart from the resolution which should be retained in the renaming.
So far I have been using the following with manually selecting the 720p or 1080p portion
Search:
(.*)[s,S](\d+)[e,E](\d+)
Replace:
\1s\2e\3.720p
or
\1s\2e\3.1080p
but each one often requires a bit of tweaking which would be nice to automate if possible. I have been trying various trial and error approaches but I am not understanding something basic as i thought the following should work but does not do at all what I expect.
Search:
(.*)[s,S](\d+)[e,E](\d+)(.*)[720p,1080p](.*)
Replace:
\1s\2e\3\4