I know I got BeautifulSoup, But I want to try my own.
之间的文本<br>This Text needed
<a>unwanted text</a>
<br/>
This text needed
<a >unwanted text</a>
This text needed
<a>unwanted text</a>
<br>this text needed
我想出了什么:
(</a>|(<br(/>|>)))(\s.*|\w.*)
我想匹配This text needed
,但其中之一不匹配。
答案 0 :(得分:0)