tags:

views:

18

answers:

1

i have a sgml file like

<p><p><data>sdlksdskdmskdmsamdakmdksam<p></data>...

my question is how to remove one tag <p> and keep another one intact ...which regular expression would be siutable......

A: 

Please provide an example file/snippet containing all possiblities and then the result you expect. Otherwise no one will be able to help.

Aliostad
<P><P>JUDGMENT<P> stion for the opinion of this court:<P> "Whether, on the facts and circumstances of the case, the Tribunal is justified in remanding the case when the Commissioner of Income-tax (Appeals) has deleted the addition made on the basis of the report of estimate of stock found by the inspector ?"<P> The application is allowed partly.<P> on extraction i want only the first <P> and last <P> to be removed so all other<p>'s appearing inside the judgement body should be intact..
shekar