def prep_regex(patterns):
    """Compile regex patterns."""

    flags = 0 if Config.options.case_sensitive else re.I

    return [re.compile(pattern, flags) for pattern in patterns]
def prep_regex ( patterns ) : flags = 0 if Config . options . case_sensitive else re . I return [ re . compile ( pattern , flags ) for pattern in patterns ]
Compile regex patterns.