I've been looking for this for a while, but for the life of me I cannot figure this out.
I have a structure for certain anime where they have a season 1 and season 2, but the episodes do not contain season in their name, but rather in the folder above
for instance
Darker than Black/Season 1/Darker_Than_Black_01_blah.mkv
Darker than Black/Season 2/Darker_Than_Black_-_Ryuusei_no_Gemini_01_blah.mkv
because of the way different seasons tend to work in anime I'd like to keep the structure this way rather than renaming them s01e01 s02e02
The above is not identical for all cases as some have spaces instead of underscore or periods, etc
Is it possible to have a regex work for this?
I've tried all of these, but none of them will scrape anything similar to above
Code:
<regexp>(?i)[/\\](?:s|season)\s?(\d{1,2})[/\\](\d{1,2})([^/\\]*)</regexp>
<regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\]\D+[\. _-](\d{1,2})[\. _-]\D+</regexp>
<regexp>Season[\._ ]([0-9]+)[\\/]([0-9]+)([^\\/]*)$</regexp>
<regexp>(?i)[/\\](?:s|season)\W?(\d{1,2})\D*[/\\].*?\Wchapter\W?(\d{1,2})\W([^/\\]*)</regexp>
I wish i understood regex more so I didn't feel so helpless.
Beyond helping with my above problem, can anyone give me examples of what exactly each of the above regex examples will accomplish? If it's too much trouble, I understand.