How to set replace command if target will dynamic href is comming
<p>This is my Html:</p>

<pre><code>desc=desc=&lt;a target="_blank" href="http://www.taxmann.com/corporatelaws/fileopencontainer.aspx?Page=CIRNO&amp;amp;id=27000000000000002519&amp;amp;search="&gt;A. P. (DIR Series) Circular No. 46 dated June 14, 2005&lt;/a&gt;
</code></pre>

<p>here id= values changes and  corporatelaws or directtaxlaws </p>

<pre><code>String   k = replace ( desc, "&lt;a target=\"_blank\" href=\"http://www.taxmann.com/corporatelaws/fileopencontainer.aspx?Page=RULES&amp;amp;id=35000000000000001648&amp;amp;search=\"&gt;", "");
</code></pre>

<p>In desc I'm getting HTML I have replace command I have to remove link so I'm pick data from anchor tag target is dynamic where id varies I'm able to replace linking to text whose target is</p>

<p><a href="http://www.taxmann.com/corporatelaws/fileopencontainer.aspx?Page=RULES&amp;id=35000000000000001648&amp;search=" rel="nofollow">http://www.taxmann.com/corporatelaws/fileopencontainer.aspx?Page=RULES&amp;id=35000000000000001648&amp;search=</a>\</p>

<p>but when ever target changes, I mean to say if id changes, it doesn't replace link as text.</p>

<p>Please tell me how to get and set the id values so that if target will be dynamic we can replace link as text. I'm new to android programming.</p>

<pre><code>String str = "http://www.taxmann.com/corporatelaws/fileopencontainer.aspx?Page=CIRNO&amp;amp;id=27000000000000002519&amp;amp;search=";
int indexoff = str.indexOf("id=");
int indexofl = str.indexOf("&amp;amp;search=");

String strsub = str.substring(indexoff + 3, indexofl - indexoff - 3);
String strstaticstring = "http://www.taxmann.com/corporatelaws/fileopencontainer.aspx?Page=CIRNO&amp;amp;id=" + strsub + "&amp;amp;search=";
String k = desc.replace(strstaticstring, "");
</code></pre>

<p>i have trying this one bUt i dont know how to pick corporte or directtaxlaws will come ..</p>
