def __process_case_list(case, case_list):
    """
        Process a case list and separate words from regular expressions.
    """
    list_strings = []
    list_words = []

    for item in case_list:
        if case == "lower":
            if item.startswith("$("):
                list_strings.append(item.replace("$", "").lower())
            else:
                list_words.append(item.lower())
        elif case == "title":
            if item.startswith("$("):
                list_strings.append(item.replace("$", "").title())
            else:
                list_words.append(item.title())
        elif case == "upper":
            if item.startswith("$("):
                list_strings.append(item.replace("$", "").upper())
            else:
                list_words.append(item.upper())
        else:
            if item.startswith("$("):
                list_strings.append(item.replace("$", ""))
            else:
                list_words.append(item)

    return list_words, list_strings