Advanced JavaScript split
<p>I have to split this string here in JavaScript:</p>

<pre><code> hl=windows xp \"windows xp\"
</code></pre>

<p>to three words.</p>

<p>I used:</p>

<pre><code> keywords = keywords.split(/ /);
</code></pre>

<p>But then i got 4 words: </p>

<pre><code>windows
xp
\"windows
xp\"
</code></pre>

<p>How could i split this string to just 3 words?</p>

<p>EDIT: and how do i remove the \".</p>
