How to split a string but miss a section under a special case
<p>I basically want to split a string and skip the split if the split is encased in a char set. e.g </p>

<p><code>(echo 1 &lt;hello world&gt; test apple &lt;green trees&gt;)</code></p>

<p>I want the array to follow:</p>

<pre><code>1 : echo
2 : 1
3 : hello world *OR* &lt;hello world&gt;
4 : test
5 : apple
6 : green trees *OR* &lt;green trees&gt;
</code></pre>

<p>Is it possible without losing order of the array? Thanks.</p>