<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pattern_logic_srt():
 """Return patterns to be used for searching srt subtitles."""


    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