使用 InDesign Grep 查找第二个马车 return

Look for a second carriage return using InDesign Grep

我正在为 InDesign 寻找 grep 表达式。

我有以下几行:

This is Line 1
This is Line 2
This is Line 3
This is Line 4
This is Line 5
This is Line 6

第 1 行和第 2 行将右缩进。
第 3 行和第 4 行将保留缩进。
第 5 行和第 6 行将再次右缩进。

除第六行外,每行后都有一个回车符return。 我想在第 2、4 行之后定位回车 return 并将其替换为其他字符或强制换行。 我怎样才能在 grep 中做到这一点?

查找内容:(.+\r.+)\r

更改为:#

其中 # 是您的符号。