在 Google 文档中用单个换行符替换多个换行符

Replace multiple line breaks by a single one in Google Docs

Google Sheets supports captures in "Find and replace" 基于正则表达式;我正在努力做这样的事情,它可以在 Google Docs 上工作。

有没有一种我错过了使用 Docs 的简单方法?

根据 Google 文档 documentation,您只能在 Google 表格中使用捕获组。 但是,您可以在不使用捕获组的情况下替换多个换行符,例如使用正向先行:

\n(?=\n)

并将其替换为空字符串。