擅长:python、mysql、java
<p>你和你的正则表达式很接近。在lookback找到位置之后,您只需要读到下一个<code><</code>:</p>
<pre><code>(?<=</span>)[^<]+
</code></pre>
<p>在<a href="https://regex101.com/r/rlgWEG/1" rel="nofollow noreferrer">regex101</a>上查看</p>
<pre><code>$ cat test.py
import re
s='</span>A walk in the park<span class="html-tag"'
print re.findall(r'(?<=</span>)[^<]+', s)
$ python test.py
['A walk in the park']
</code></pre>