Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove empty line / lines in PSPad using regexp

I was wondering how to delete empty lines or just any line in PSPad using regexp.
It can not be done with regexp, however there is a way - so:
I wanted to share the knowledge => see my answer below...

like image 455
jave.web Avatar asked Feb 11 '23 19:02

jave.web


1 Answers

Removing the line in PSPad

PSPad (unlike e.g. Notepad++) does not allow you to remove lines using regexp at all, if you are thinking about using ^YOU_REG_EXP$ replacing with "nothing", it will not work, however you can pre-clean the lines like that.

Removing empty lines in PSPad:

In top menu go to Edit -> Lines manipulation and choose one of these options:

  • Remove Blank Lines Remove Redundant
  • Blank Lines (leave at least one blank line)

Removing empty lines in PSPad

like image 160
jave.web Avatar answered Feb 20 '23 23:02

jave.web