javascript split with multi separator & returning used separator to array?
<p>I have String</p>

<pre><code>var t = '@qf$q&gt;@gf';
</code></pre>

<p>and array of separators</p>

<pre><code>var s = '@$&gt;';
</code></pre>

<p>I would like to have a function which returns:</p>

<pre><code>var a = f(t,s);
// a is array = ["@","qf","$","q","&gt;","@","gf"];
</code></pre>

<p>Can you help me ?</p>
