def removeTopic(content): topics = re.findall(u"#[\w\u0000-\u9FFF]+#", content) for i in range(0, len(topics)): content = content.replace(topics[i], '') return content