REGEX remove blank lines:
FROM: http://www.ultraedit.com/support/tutorials_power_tips/ultraedit/remove_blank_lines.html
FIND:
^(?:[\t ]*(?:\r?\n|\r))+
REPLACE:
[LEAVE THIS EMPTY BECAUSE YOU DO NOT WANT TO REPLACE WITH ANYTHING]
(Related: If you happen to be where you can use AWK, you can use awk NF
.
If you happen to be where you can use SED, you can use sed /^$/d'
--
EXAMPLE USE OF SED sed /^$/d < text_with_blanks.txt > no_blanks.txt
.)
Nope. A simple test would have shown it doesn't work. That's basically matching a zero width character. So replacing it with nothing has no effect. Here is a good thread to perhaps learn a bit more about removing empty lines. https://stackoverflow.com/questions/3866034/removing-empty-lines-in-notepad