import re


def _clean_cassandra_log(string):
    """Strip the text formatting from Cassandra output"""
    string = re.sub(r"\^\[\[0m", "", string)
    string = re.sub(r"\^\[\[1m", "", string)
    return string