The regular expression is:
^[ \t]*\n
Both EditPlus and UltraEdit have the problem that all replacements cannot completely delete empty lines at one time. It may be a bug in the program, and you need to press the button several times.
But you can long press ctrl+R to achieve batch replacement. It is very easy for a large amount of text.