title: split a string using javascript
body: <p>I have a string like ";a;b;c;;e". Notice that there is an extra semicolon before <code>e</code>. I want the string to be split in <code>a</code>, <code>b</code>, <code>c;</code>, <code>e</code>. But it gets split like <code>a</code>, <code>b</code>, <code>c</code>, <code>;e</code>.</p>
  
  <p>My code is </p>
  
  <pre><code>var new_arr = str.split(';');
  </code></pre>
  
  <p>What can I do over here to get the result I want?</p>
  
  <p>Regards</p>