I am trying to process a logfile. The log file is interspersed with arbitrary numbers of blank lines, e.g.
Can someone help me with a regex that will delete all these blank lines. My thinking so far has lead me to using '^$' to match the blank line rather than \
. But I'm not sure what to replace the blank line with to delete it. I don't want to use a blank line obviously, nor to I want to use a space character - I want to remove the white space all together.
Any help appreciated. Thanks.