<p>我需要在双引号之间匹配换行符,如:</p>
<pre><code><p class="calibre1">“This is the first sentence.</p>
<p class="calibre1">And this is the second!”</p>
</code></pre>
<p>这将匹配<code></p> <p class="calibre1"></code></p>
<p>现在,我使用正则表达式<code>(?<=“[^”]*)</p>\s*<p[^>]*>(?!“)</code>,但是当我尝试非手动使用它时,我得到标题中描述的错误:“<em>无效正则表达式:lookbehind requires fixed width pattern</em>”中描述的错误。我需要这个正则表达式用于电子书管理/编辑程序Calibre,它使用Python作为正则表达式引擎。如果要在上面的regeboi上手动搜索一个regeboi选项,请尝试运行该选项。在</p>
<p>我看不出如果后面没有可变宽度的观察怎么可能做到这一点,因为你不知道从左双引号到换行符要多长时间。我们将非常感谢您的帮助!在</p>