notepad delete empty lines code example
Example 1: regular expression to remove empty lines after text
Find: ^(?:[\t ]*(?:\r?\n|\r))+
Replace: ""
Example 2: notepad++ remove empty lines
; set Search Mode to reg ex
Find:^\h*\R
Replace: ""
Find: ^(?:[\t ]*(?:\r?\n|\r))+
Replace: ""
; set Search Mode to reg ex
Find:^\h*\R
Replace: ""