views:

71

answers:

1

i am making a regex expression in which i want to only match wrong tags like

<p> *some text here, some other tags may be here as well but no ending 'p' tag* </p>

 <P>Affectionately Inscribed </P><P>TO </P><P>HENRY BULLAR, </P><P>(of the western circuit)<P>PREFACE</P>

like in the above same text i want to get the result as <P>(of the western circuit)<P> and nothing else should be captured. im using this but its not working

<P>[^\(</P>\)]*<P>

please help