Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2014
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.25 KB | None | 0 0
  1. import urllib
  2. sock = urllib.urlopen("http://www.ietf.org/rfc/rfc3280.txt")
  3. htmlSource = sock.read()
  4. sock.close()
  5. words = htmlSource.split()
  6.  
  7. import re
  8. for w in words:
  9.     if re.match("A-Za-z", w):
  10.         words.pop(words.index(w))
  11. print words
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement