Created
December 31, 2016 12:36
-
-
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
This file contains hidden or 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
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