How can I delete blank lines in UltraEdit?
To delete blank lines in DOS/Unix/Mac formatted-files, use the following Perl-compatible regular expression. You can enable Perl-compatible regular expressions under Advanced -> Configuration -> Search -> Regular Expression Engine. Replace: “^\r?\n?$” (without the quotes) With “” (without the quotes – i.e. nothing). Earlier versions of UltraEdit: To delete blank lines with DOS line terminators you can use an UltraEdit-style regular expression replace as follows: Replace: “^p$” (without the quotes) With “” (without the quotes – i.e. nothing). Run this replace until every blank line is deleted.