【发布时间】:2009-02-23 11:21:20
【问题描述】:
我正在制作一个正则表达式,我只想匹配错误的标签,例如
<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>
就像在上面的相同文本中一样,我希望得到<P>(of the western circuit)<P> 的结果,并且不应该捕获任何其他内容。我正在使用它,但它不起作用
<P>[^\(</P>\)]*<P>
请帮忙
【问题讨论】:
-
请继续现有线程;不要打开重复项。
-
@MarcGravell:请关闭这个。