import re


def clean_regex(text):
    """
    Clean contraction from the text

    Parameters
    ----------
    text: string
            Text lines of string

    Return
    ------
    string
            Cleaned contraction
    """
    clean_dict = {
        r"i'm": r"i am",
        r"he's": r"he is",
        r"she's": r"she is",
        r"that's": r"that is",
        r"what's": r"what is",
        r"where's": r"where is",
        r"\'ll": r" will",
        r"\'ve": r" have",
        r"\'re": r" are",
        r"\'d": r" would",
        r"won't": r"will not",
        r"can't": r"can not",
        r"I've": r"I have"
    }
    for each in clean_dict:
        text = re.sub(each, clean_dict[each], text)

    return text