import re


def replace_repeat(s):
    """
    Look for 2 or more repetitions of character and replace with the character itself.
    INPUT:a string specifying a word
    OUTPUT: word with replaced repetitions
    """
    pattern = re.compile(r"(.)\1{1,}", re.DOTALL)
    
    return pattern.sub(r"\1\1", s)