import re


def replace_regex(input_str, find, replace):
    """
    Regex replace filter that replaces all occurrences of given regex match
    in a given string

    :param input_str: Input string on which replacement is to be performed
    :type input_str: str
    :param find: Regular expression string that needs to be used for
        find/replacement
    :type find: str
    :param replace: Regex replacement string
    :type replace: str
    :return: Regex replaced string
    :rtype: str
    """
    return re.sub(find, replace, input_str)