x.after[lang.ISO3, lang.ISO2, lang.name, lang].join('|')
to find the text after *or before) the matched language string does not work reliably.
If LANG matched and "English" in English-SHD, the above code will not find SHD but "lish.SHD"
I may find a solution where English, Eng and En all start identically, but there are casaes like
French where the string could be Fre or fra, and other unforseen problems.
The only clean solution is if filebot provides the matched string, ie: lang.matched.
I will not die without it, but it will be nice to have

Additionally, one needs to be careful with the use of \w as in some code provided on this page post
(in case some one wants to use it) It does not match only alphanumericals but also the "_" and fail whenever _ is used as separator.
Have not tested if groovy supports :alnum: instead, but replaced it with [a-zA-Z0-9] which gave me certainty.