title: splitting strings using re.split
body: <p>I have multiple strings (>1000) of the form: </p>
  
  <pre><code>\r\nSenor Sisig\nThe Chairman\nCupkates\nLittle Green Cyclo\nSanguchon\nSeoul on Wheels\nKasa Indian\n\nGo Streatery\nWhip Out!\nLiba Falafel\nGrilled Cheese Bandits\r\n
  </code></pre>
  
  <p>The strings may have a whitespace before the '\n' </p>
  
  <p>How do I split these strings (in an efficient way) so as to avoid getting any empty or duplicate (the whitespace case) elements? </p>
  
  <p>I was using:</p>
  
  <pre><code>re.split(r'\r|\n', str)
  </code></pre>
  
  <p>EDIT:
  some more examples:</p>
  
  <pre><code>\r\nThe Creme Brulee Cart \r\nCurry Up Now\r\nKoJa Kitchen\r\nAn the Go\r\nPacific Puffs\r\nEbbett's Good to Go\r\nFiveten Burger\r\nGo Streatery\r\nHiyaaa\r\nSAJJ\r\nKinder's Truck\r\nBlue Saigon\r
  \r\nThe Chairman\r\nSanguchon\r\nSeoul on Wheels\r\nGo Streatery\r\nStreet Dog Truck\r\nKinder's Truck\r\nYummi BBQ\r\nLexie's Frozen Custard\r\nDrewski's Hot Rod Kitchen\r
  \n An the Go \n Cheese Gone Wild \n Cupkates \n Curry Up Now \n Fins on the Hoof\n KoJa Kitchen\n Lobsta Truck \n Oui Chef \n Sanguchon\n Senor Sisig \n The Chairman \n The Rib Whip 
  </code></pre>
  
  <p>thanks!</p>