String manipulation in java
<p>I have below string :</p>

<pre><code>String str="&lt;div&gt;&lt;select id=\"test2\"&gt;&lt;option id=\"1\" value=\"one\" selected&gt;&lt;option id=\"2\" value=\"two\"/&gt;&lt;/select";
</code></pre>

<p>Based on string "two",avove string manipulated to below:</p>

<pre><code>String resultstr="&lt;div&gt;&lt;select id=\"test2\"&gt;&lt;option id=\"1\" value=\"one\" &gt;&lt;option id=\"2\" value=\"two\" selected/&gt;&lt;/select";
</code></pre>

<p>How to do the above process.</p>

<p>Thanks,
Raj</p>
