import re


def replace_num(text):
    """
    Replace '.num' with the unicode value of 'num'

    :param str text: Text to be replaced

    :return: Text replaced
    :rtype: str
    """
    regex = re.compile(r"(\.\d+)")
    return regex.sub(lambda x: chr(int(x.string[x.start() + 1:x.end()])), text)