title: split a comma, space, or semicolon separated string using regex
body: <p>I use the regex [,;\s]+ to split a comma, space, or semicolon separated string. This works fine if the string doesn't have a comma at the end:</p>
  
  <pre><code>&gt;&gt;&gt; p=re.compile('[,;\s]+')
  &gt;&gt;&gt; mystring='a,,b,c'
  &gt;&gt;&gt; p.split(mystring)
  ['a', 'b', 'c']
  </code></pre>
  
  <p>When the string has a comma at the end:</p>
  
  <pre><code>&gt;&gt;&gt; mystring='a,,b,c,'
  &gt;&gt;&gt; p.split(mystring)
  ['a', 'b', 'c', '']
  </code></pre>
  
  <p>I want the output in this case to be ['a', 'b', 'c'].</p>
  
  <p>Any suggestions on the regex? </p>