title: Python BeautifulSoup4 get_text() or regex
body: <p>I am using Python 2.7.5 and BeautifulSoup4.
  I need to cut text from html tags.
  I have output <code>&lt;a class="username offline popupctrl" href="member.php?20938-NarutoO" title="NarutoO je offline"&gt;&lt;strong&gt;&lt;font color="#5566CC"&gt;NarutoO&lt;/font&gt;&lt;/strong&gt;&lt;/a&gt;</code> after a command:</p>
  
  <pre><code>  print post_owner[0]
  </code></pre>
  
  <p>I need only nickname: <code>NarutoO</code>
  and don't want to use <code>get_text()</code>.</p>
  
  <p>My code:</p>
  
  <pre><code>post_owner = soup.findAll(attrs={'class':'username offline popupctrl'})
  for row1 in post_owner:
      text = ''.join(row1.findAll(text=True))
      data1 = text.strip()
      text_file.write("USER NAME\n")
      member_count = member_count + 1
      data1 = data1.encode('utf-8')
      text_file.write(str(data1) + '\n')
  </code></pre>
  
  <p>I use some solution in other posts.If I understood it correctly, <code>findAll</code> gives me a list of all matches. My code will print all matches in a row. I just need access elements in <code>post_owner</code> list and use them without html tags. Some example like:</p>
  
  <pre><code>  print post_owner[0]
    print post_owner[4]
    print post_owner[2]
    .
    .
    .
  </code></pre>
  
  <p>sorry for bad explanation, I am really tired :o</p>