If you notice that you have numerous blank lines in your file and you want to remove them, there is a faster process than manually deleting them.
UltraEdit v24.20 (and UEStudio v17.20) and later users can simply select Edit > Delete, and then select one of the following options:
If you have an older version of UltraEdit where Perl regular expressions are supported, you can use the following Perl regex to delete all blank lines in your text file. First make sure to enable Perl regular expressions by clicking the gear button in the Find dialog to show the advanced search options, or -- prior to UltraEdit v14.00 -- go to Advanced > Configuration > Search > Regular Expression Engine, and then enable Perl compatible Regular Expressions.
Find What: "^(?:[\t ]*(?:\r?\n|\r))+" (without the quotes)
Replace With: "" (without the quotes, i.e., nothing)
Note: Click Replace all once to replace all – even consecutive – blank lines in a text file.
If you have an older version of UltraEdit that doesn’t support Perl regex, you can delete all blank lines using a regular expression replace as follows. Note that first you’ll need to check the Regular expressions option in the Replace dialog.
Find What: "%[^t ]++[^r^n]+" (without the quotes)
Replace With: "" (without the quotes, i.e. nothing)
You may need to click Replace all several times to ensure removal of all blank lines. Because of the way the the older regular expression syntax works, the replace might not replace all consecutive blank lines in your text file.