Delete the blank lines in EditPlus

Start EditPlus, open the text file types to be processed.
1, select "Find" menu "replace" command, the Replace dialog box pop-up text. Select the "regular expression" check box to indicate that we want to find and replace the use of regular expressions. Then, select "Replace range" in the "current file", indicating that the current file operations.

2, click the "Find what" button on the right side of combo boxes, drop-down menu appears.
3, the following operations to add regular expression that represents the blank line to be searched. (Tips: Empty row contains only spaces, tabs, carriage returns, and must be one of the three symbols as the beginning of a line and end with a carriage return and look for the key blank line is constructed on behalf of blank lines regular expressions).
(1) Select "Start match from the beginning of the line", "Find what" appears in the combo box character "^", said to be the first line of the line search string in the text must appear.
(2) Select "range character", then the "^" will increase after a pair of parentheses "[]", the current insertion point in parentheses. Parentheses in a regular expression, the characters in the text matches any character brackets that meet the search criteria.
(3) press the spacebar to add a space character. Component of the space character is a blank line.
(4) Select the "tab", the representative added tabs "T."
After (5) to move the cursor, the current insertion point to the "]", and then select the "Match 0 or more", the operation will add asterisk character "*." An asterisk indicates that the front brackets "[]" spaces or tabs within, zero or more occur in a row.
(6) Select "newline" insert "n-'represents a carriage return.
So far, the regular expression construct success.

Reproduced in: https: //www.cnblogs.com/public/archive/2011/03/28/1997382.html

Guess you like

Origin blog.csdn.net/weixin_33853827/article/details/93744094