split on string
<p>I have a string like this <code>abc &amp; "def&amp;ghi" &amp; jkl &amp; "mno&amp;pqr"</code> and want to do a split aroung <code>&amp;</code>, but i don't want to split words within double quotes. </p>

<p>Output should be <code>abc, "def&amp;ghi", jkl, "mno&amp;pqr"</code>.</p>

<p>I tried doing a <code>split("&amp;")</code> on that string, but that's also splitting the words within double quotes. </p>

<p>Whats the best way of doing this?</p>
