notepad4 icon indicating copy to clipboard operation
notepad4 copied to clipboard

请问如何删除偶数行?

Open yigexuezha opened this issue 3 years ago • 2 comments

请问如何删除偶数行?

yigexuezha avatar May 31 '22 05:05 yigexuezha

No such functionality at the moment.

zufuliu avatar May 31 '22 06:05 zufuliu

理论上可以用正则表达替换\r\n.*\r\n替换为\r\n 来实现,但实际上正则表达模式下无法表示换行符,而正则表达帮助里标注“单行模式”,不知有没有其他方法?

GuiWonder avatar Jul 01 '22 21:07 GuiWonder

可以组合2个功能实现。 1、用行修改,在行前加$(0N) 2、正则表达式替换,^[\d]+[02468].*$

AnderSunC avatar Sep 16 '22 12:09 AnderSunC