I am looking for REGEX which will give me data along with the end tag
e.g.
input:
-----------------
<p>ABC<p>
-----------------
Output would be
-----------------
ABC<p>
-----------------
it will only remove the first para
para tag,Not for the second para
tag and all text in between would be same.
I want to mention here that i am looking for
<p>ABC<p>
not for
<p>ABC</p>
Its for specific text file having irregular
tags
Example:
i have big xhtml file like…
<p>scet</p>
<p>sunny </p>
<p> <!--this tag is to be removed -->
<p> <!--this tag is to be removed -->
<p>mark</p>
<p>Thomas </p>
its a complete XHTML file.having body head etc tags
Only problem here is
extra tags
i am expecting output like this
<p>scet</p>
<p>sunny </p>
<p>mark</p>
<p>Thomas </p>
This will work, take html document in string xhtml