I am struggling to find this - I need to strip all empty lines which might have white space before them
The alternative is messing about in Excel - I am using TextPad
I am struggling to find this - I need to strip all empty lines which might have white space before them
The alternative is messing about in Excel - I am using TextPad
In Textpad: First find blank line: F5, then ^\s*$
Next mark 'em: in the find dialog, click the "Mark All" button. You see right-carets next to each blank line.
Then delete 'em: Select Edit->Delete ->Bookmarked Lines
A simple reg ex for any empty line which may contain white space is:
^[ \t]*$
Since you want to remove the line, this will not do:
^\s*$
You need to remove the line break after the empty line:
^\s*$[\n\r]*