Skip to content

Instantly share code, notes, and snippets.

@cxtadment
Created April 18, 2016 00:17
Show Gist options
  • Save cxtadment/eb3ee44cd87c4055ee849f8a3b4ec4e1 to your computer and use it in GitHub Desktop.
Save cxtadment/eb3ee44cd87c4055ee849f8a3b4ec4e1 to your computer and use it in GitHub Desktop.
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment