擅长:python、mysql、java
<p>你可以用我的两分钱</p>
<pre><code>^
(?:Section\ )?\d+\.\d+
[\s\S]*?
(?=^(?:Section\ )?\d+\.\d+|\Z)
</code></pre>
<p>使用<code>verbose</code>和<code>multiline</code>修饰符,请参见<a href="https://regex101.com/r/qgYPxI/2" rel="nofollow noreferrer"><strong>a demo on regex101.com</strong></a>。
</p><hr/>
在<code>Python</code>中:
^{pr2}$