import re


def tuple_regex_sub(pattern_token, text):
    """
    Replace a regex with a token in text.
    
    Input
    -----
    
    pattern_token : tuple of str
        The tuple is (regex, token), where `regex` is the regular expression
        to be replaced for `token`.
        
    text : str
        String where the replacement occurs.
    """
    return re.sub(pattern_token[0], pattern_token[1], text, flags=re.I)