The above code is replacing every <p> with <con>.
I have to replace only in the first <p> and skip replacing of <con> for other <p>
tag.
The replacement should work only for the first <p> tag in a file and
I have to replace only in the last </p> and skip replacing of </con> for other </p>
tag.
The replacement should work only for the last </p> tag in a file
Please help me on this.