我在windows中使用notepad ++。
我有以下格式的大文字。
2C0_10B4
TCD Signed Destination Address Offset
(DMA_TCD5_DOFF)
16
2C0_10B6
TCD Current Minor Loop Link, Major Loop Count (Channel
Linking Enabled) (DMA_TCD5_CITER_ELINKYES)
16
2C0_10B6 DMA_TCD5_CITER_ELINKNO 16
2C0_10B8
TCD Last Destination Address Adjustment/Scatter Gather
Address (DMA_TCD5_DLASTSGA)
32
2C0_10BC TCD Control and Status (DMA_TCD5_CSR) 16
2C0_10BE
TCD Beginning Minor Loop Link, Major Loop Count
(Channel Linking Enabled)
(DMA_TCD5_BITER_ELINKYES)
16
2C0_10BE
TCD Beginning Minor Loop Link, Major Loop Count
(Channel Linking Disabled) (DMA_TCD5_BITER_ELINKNO)
16
我想将从2C0开始的行之间的未知行数合并为一行。完成此过程后,所有文本都应如下所示。
2C0_10B4 TCD Signed Destination Address Offset (DMA_TCD5_DOFF) 16
2C0_109C TCD Control and Status (DMA_TCD4_CSR) 16
2C0_10C0 TCD Source Address (DMA_TCD6_SADDR) 32
答案 0 :(得分:1)
尝试使用:
configurations {
all*.exclude group: 'com.android.support', module: 'support-v4'
}
\R(?!2C0)
NOTHING
代表任何类型的换行符
\R
是negative lookahead,确保我们在换行后没有(?!2C0)
。
这将替换2C0