Skip to content

Instantly share code, notes, and snippets.

@cxtadment
Last active April 17, 2016 23:57
Show Gist options
  • Save cxtadment/94bcf6e0cb58e1866fb44e9dfe99aa6c to your computer and use it in GitHub Desktop.
Save cxtadment/94bcf6e0cb58e1866fb44e9dfe99aa6c to your computer and use it in GitHub Desktop.
def removePrivate(content):
privates = re.findall(u"@[\w\u0000-\u9FFF]+", content)
for i in range(0, len(privates)):
content = content.replace(privates[i], '')
return content
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment