title: Splitting a string with multiple delimiters in Python
body: <p>I'm using regular expressions to split a string using multiple delimiters. But if two of my delimiters occur next to each other in the string, it puts an empty string in the resulting list. For example:</p>
  
  <pre><code>re.split(',|;', "This,is;a,;string")
  </code></pre>
  
  <p>Results in </p>
  
  <pre><code>['This', 'is', 'a', '', 'string']
  </code></pre>
  
  <p>Is there any way to avoid getting <code>''</code> in my list without adding <code>,;</code> as a delimiter?</p>