Languages

How to remove empty lines with regex in Notepad++?

5 points
Asked by:
Kate_C
19790

Is there a way I can delete all empty lines with regex with Notepad++?

I know I can achieve it from UI by click on:

  • Edit
  • Line Operations
  • Remove Empty Lines

But is there a way to do it with regex?

For example I have:

line 1

line 3

line 5


line 8

After empty files are removed:

line 1
line 3
line 5
line 8

 

0 answers
Native Advertising
50 000 ad impressions - 449$
🚀
Get your tech brand or product in front of software developers.
For more information contact us:
Red dot
Dirask - friendly IT community for everyone.

❤️💻 🙂

Join