title: Additional empty elements when splitting a string with re.split
body: <p>I'm trying to split a string looking like this in Python using re.split:</p>
  
  <pre><code>#NAME="Foo" NAME2="foobar" NAME3="BAR BAR"
  comp = "NAME=\"Foo\" NAME2=\"FOO BAR\" NAME3=\"BAR BAR\""
  </code></pre>
  
  <p>This is how my split-function including regex looks like:</p>
  
  <pre><code>re.split('(\s\w+\=\".*?\")', comp)
  </code></pre>
  
  <p>The result looks like this:</p>
  
  <pre><code>['NAME="Foo"', 'NAME2="foobar"', '', 'NAME3="BAR BAR"', '']
  </code></pre>
  
  <p>While this is correct I'd like to get rid of all empty elements.</p>