Get multiple character positions in array?
<p>I want to get position of dots and commas in an array.</p>

<p>w.wer,ads,</p>

<p>should give something like:</p>

<pre><code>[0] &gt; 1
[1] &gt; 5
[2] &gt; 9
</code></pre>

<p>How can this be done with javascript?</p>
