def _compile_regexs(self):
        # type: () -> None
        """Takes episode_patterns from config, compiles them all
        into self.compiled_regexs
        """
        for cpattern in Config['filename_patterns']:
            try:
                cregex = re.compile(cpattern, re.VERBOSE)
            except re.error as errormsg:
                warn(
                    "WARNING: Invalid episode_pattern (error: %s)\nPattern:\n%s"
                    % (errormsg, cpattern)
                )
            else:
                self.compiled_regexs.append(cregex)
Takes episode_patterns from config, compiles them all
        into self.compiled_regexs
        
tvnamer/files.py