title: Split string from BeautifulSoup output in a list
body: <p>I have the following output from my code</p>
  
  <p>Code: <code>text = soup.get_text()</code></p>
  
  <p>Output:</p>
  
  <pre><code>Article Title
  
      Some text: Text blurb.
  
  More blurb.
  
  Even more blurb. 
  
  Some more blurb. 
  
  
  
  
  
  Second Article Title
  
  Some text: Text blurb.
  
  More blurb.
  
  Even more blurb. 
  
  Some more blurb. 
  </code></pre>
  
  <p>Next, when I do <code>test = text.splitlines()</code>, the output changes to</p>
  
  <pre><code>u'Article Title', u'', u'Some text',u'Text blurb',u'More blurb',u'Even more blurb',u'Some more blurb',, u'', u'', u'', u'', u'',u'Second Article Title', u'', u'Some text:',u'Text blurb',u'More blurb',u'Even more blurb',u'Some more blurb',, u'', u'', u'', u'', u'',
  </code></pre>
  
  <p>I'd like to split the string using <code>u'', u'', u'', u'', u''</code> so that I can then individually parse out the lines. I'd have liked to use the tags but their structure makes it difficult to use. </p>
  
  <p>How do I perform the split? I have tried:</p>
  
  <pre><code>result = [list(g) for k,g in groupby(test,lambda x:x=="u''") if not k]
  print result
  </code></pre>
  
  <p>and</p>
  
  <pre><code>for item in test:
      arr = re.split("u'', u'', u'', u'', u''",item, flags=re.UNICODE)
      print arr
  </code></pre>
  
  <p>but they don't give me the desired output.</p>