import mystic_bbs as bbs; def stripmci (str): pos = str.find("|") while pos != -1: str = str[:pos] + str[pos+3:] pos = str.find("|") return str def mcilen (str): return len(stripmci(str)) text = "|12This is a |14test"; bbs.rwriteln(stripmci(text)); bbs.rwriteln(str(mcilen(text))) bbs.writeln("|PA")