Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Delete short lines in Notepad++

How can I delete short two-character lines in a text file using Notepad++

This is an original test file:

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

This is the expected file:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

U70779 Especial
P160993 Especial
P091262
HkP095379 E
P204406
Arturo Cobo Lopez
B022725 Regular

>Solution :

You may try the following find and replace, in regex mode:

Find:    ^\w{2}\R?
Replace: (empty)

Here is a running regex demo.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading