Skip to content

Instantly share code, notes, and snippets.

@krishnachaitanya7
Created December 31, 2016 12:36
Show Gist options
  • Save krishnachaitanya7/62242d03ce09b95e440a35d17482069c to your computer and use it in GitHub Desktop.
Save krishnachaitanya7/62242d03ce09b95e440a35d17482069c to your computer and use it in GitHub Desktop.
It is helpful in making new set of words to learn in quizlet, by removing the mnemonics i have added
import pyperclip,re
final = re.sub(r'^mnemonic.*\n?', '', pyperclip.paste().encode('ascii','replace'), flags=re.MULTILINE)
pyperclip.copy(final)
print "No of words: %d" % len(final.split('\n'))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment