Skip to content

Instantly share code, notes, and snippets.

@rizkyabdilah
Created June 15, 2012 16:43
Show Gist options
  • Save rizkyabdilah/2937504 to your computer and use it in GitHub Desktop.
Save rizkyabdilah/2937504 to your computer and use it in GitHub Desktop.
get email address at test.easy
#!/opt/python/bin/python
import re
if __name__ == "__main__":
_remove_re = re.compile(r"(%|\^|\*|\(|\)|\{|\}|\[|\]|\$|@|!|_|\ |&|#|\+)")
fp = open("/tmp/test.easy", "r")
buff = fp.read()
fp.close()
print re.sub(_remove_re, "", buff)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment