0
String  s  = "<p>test with only p tag </p>";

输出应该是test with only p tag

String  t  = "<p>test with only p tag </p><p></p>";

输出应该是test with only p tag <p></p>

4

1 回答 1

0
(?<=<p>).+(?=</p>)

应该管用

于 2012-06-12T10:12:10.477 回答