Javascript split remove ":" colon character
<p>I have a string like this.</p>

<pre><code>var a="1:2:3:";
</code></pre>

<p>I want to split it with <code>a.split(":")</code> to remove the ":" colon character.</p>

<p>I want to get this as the result:</p>

<pre><code>["1","2","3"]
</code></pre>

<p>But instead the result of <code>a.split(":")</code> is this:</p>

<pre><code>["1","2","3",""]
</code></pre>
