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