import re


def is_regex_search(regex_pattern, search_context):
    """
    Wrapper method to check if the regex pattern is within the search context.

    If it is, returns True. False if not.
    """

    regex_search = re.compile(regex_pattern)
    if regex_search.search(search_context) is not None:
        return True
    return False