import re


def regex_compile(search_string):
    """
    Used to compile regex search string to object.
    ------------Parameters----------
    search_string : str : a regex pattern string to be used to search for
    ------------Yields--------------
    A compiled regex object that can be used in regex matching commands.
    """
    search_obj = re.compile(search_string)
    return search_obj