def add_regex_start_end(pattern_function):
    """Decorator for adding regex pattern start and end characters."""

    @wraps(pattern_function)
    def func_wrapper(*args, **kwargs):
        return r'^{}$'.format(pattern_function(*args, **kwargs))
    return func_wrapper