The idea is to match a single word from group one. and add that to the file name. and if there is a second word matched from group two add that along with the word from group one. I.E.:
Code: Select all
(Unrated|Extended)+(Version|Edit|cut)
this is the code i've been working with. I was pretty sure, I read this was possible with the + at the end of the first froup and ?: at the start of the second. meaning it'll match the first group. and check for the second but not fail the first group if a match to the second isn't found. but if it is found add it to the returned result.
Code: Select all
{" ["+file.path.lower().matchAll(/(uncensored|uncut|unrated|remastered|ultimate|extended|director?s|theatrical|ultimate|final|bootleg|special|fan?edit?|limited|rifftrax|monstervision|youtube|hulu|netflix|vimeo|edited|edit|censored+)(?:.edition|.cut|.version|.edit|.release|.extended|.rip)?/)*.upperInitial()*.lowerTrail().sort().join('] [')+']'}
-DevXen