Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import re
- fname = raw_input(("Enter a file name including the extension: \n"))
- fopen = open(fname)
- words = []
- for s in fopen.read().split():
- word = re.findall(r'\b(\w+ing)\b', s)
- words.append(word)
- print words
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement