import re


def regex_sub(value, pattern, substitute):
    """
    Substitue pattern in the value
    args:
        value (str): value that need the substitution
        pattern (str): regex patten that need to be checked
        substitute (str): regex pattern that need to be substituted
    """
    return re.sub(pattern, substitute, value)