Last active
April 17, 2016 23:57
-
-
Save cxtadment/94bcf6e0cb58e1866fb44e9dfe99aa6c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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