You are looking for this:
^\n|^\s+$
it will not delete the line, if there is content with white space or tabs in front>
e.g.:
these will not be deleted: ...space... abc
...tab... abc
this will:
...space... ...nothing else...
...tab... ...nothing else...