在Notepad++中删除短行

问题描述 投票:0回答:1

如何使用 Notepad++ 删除文本文件中的短两字符行

这是原始测试文件:

U70779 Especial
P160993 Especial
DV
P091262
HX
HkP095379 E
Ty
TP
P204406
Da
AC
Arturo Cobo Lopez
B022725 Regular
MM

这是预期的文件:

U70779 Especial
P160993 Especial
P091262
HkP095379 E
P204406
Arturo Cobo Lopez
B022725 Regular
text notepad++
1个回答
0
投票

您可以在正则表达式模式下尝试以下查找和替换:

Find:    ^\w{2}\R
Replace: (empty)
© www.soinside.com 2019 - 2024. All rights reserved.