标签: merge notepad++
我的文本文件具有以下结构。我想合并以“ ::”开头的每一行及其顶行。
如何合并行?
我的文本文件结构如下:
x ::{abc} y ::{def}
理想的结果是:
x::{abc} y::{def}
答案 0 :(得分:1)
\R(?=::)
LEAVE EMPTY
说明:
\R # any kind of linebreak (?=::) # positive lookahead, make sure we have :: after
屏幕截图(之前):
屏幕截图(之后):