我在Notepad ++文件中有一堆具有以下格式的行:
当前格式:
301
以下是替换后的预期结果如下:
Line 53: 2017-05-26 02:26:10,362 Executing SQL query [ Select * from T1 ]
Line 54: 2017-05-26 02:27:40,365 Executing SQL query [ Select * from T2 ]
Line 53: 2017-05-26 02:27:40,862 Executing SQL query [ Select * from T3 ]
Line 54: 2017-05-26 02:28:20,367 Executing SQL query [ Select * from T4 ]
如何在Notepad ++中实现它?
答案 0 :(得分:1)
将鼠标指针放在Line字词之前,然后按shift + alt并在最后一行的两点之后单击并删除,其他块的处理相同
答案 1 :(得分:1)
我会在NOTEPAD ++中使用REGULAR EXPRESSION,可能是这样的:
FIND:
\1\2
替换:
2017-05-26 02:26:10,362 Select * from T1
2017-05-26 02:27:40,365 Select * from T2
2017-05-26 02:27:40,862 Select * from T3
2017-05-26 02:28:20,367 Select * from T4
给出
{{1}}