code: def pattern_logic_srt():
      
  
      if Config.options.pattern_files and Config.options.regex:
          return prep_regex(prep_patterns(Config.options.pattern_files))
      elif Config.options.pattern_files:
          return prep_patterns(Config.options.pattern_files)
      elif Config.options.regex:
          return prep_regex(Config.REGEX)
      else:
          return Config.TERMS
docs: Return patterns to be used for searching srt subtitles.