擅长:python、mysql、java
<p>这个正则表达式似乎有效</p>
<pre><code>([^<]+)<a\s+href\s*=\s*"([^"]+).*
</code></pre>
<p><strong><a href="https://regex101.com/r/gK1lL0/1" rel="nofollow">Regex Demo</a></strong></p>
<p>Python代码</p>
^{pr2}$
<p><strong><a href="http://ideone.com/K7sFYd" rel="nofollow">Ideone Demo</a></strong></p>