Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import urllib
- sock = urllib.urlopen("http://www.ietf.org/rfc/rfc3280.txt")
- htmlSource = sock.read()
- sock.close()
- words = htmlSource.split()
- import re
- for w in words:
- if re.match("A-Za-z", w):
- words.pop(words.index(w))
- print words
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement