title: Python Regex Help
body: <p>I am trying to sort through HTML tags and I can't seem to get it right.</p>
  
  <p>What I have done so far</p>
  
  <pre><code>import urllib
  import re
  
  s = raw_input('Enter URL: ')
  f = urllib.urlopen(s) 
  s = f.read() 
  f.close 
  r = re.compile('&lt;TAG\b[^&gt;]*&gt;(.*?)&lt;/TAG&gt;',)
  result = re.findall(r, s)
  print(result)
  </code></pre>
  
  <p>Where I replace "TAG" with tag I want to see.</p>
  
  <p>Thanks in advance.</p>