import re


def strip_escapes(s):
    """
    Strips escapes from the string.

    :param string s: The string.
    :rtype: string
    """

    return re.sub("\033\[(?:(?:[0-9]*;)*)(?:[0-9]*m)", "", s)