寻找第二个回车 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 行将再次右缩进

除第六行外,每一行后面都有回车。
我想在第 2、4 行之后定位回车,并用其他字符或强制换行符替换它。
如何在 grep 中做到这一点?

解决方法

查找内容:test_get <- dbGetQuery(con,'select * from "provider.Provider_Composite" limit 5;')

更改为:(.+\r.+)\r

其中 $1# 是您的符号。