Splitting a string in certain way
<p>I have the following string</p>

<pre><code>{item1}home::::Home{/item1}{item2}contact_us::::Contact Us{/item2}{item3}.....
</code></pre>

<p>and so it goes on.</p>

<p>I need to split the string the following way</p>

<p>1=>{item1}home::::Home{/item1}</p>

<p>2=>{item2}contact_us::::Contact Us{/item2}</p>

<p>Is there a way?</p>
