Created
January 29, 2013 16:29
-
-
Save sosukeinu/4665559 to your computer and use it in GitHub Desktop.
REGEX:empty lines
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Use this to find all "wrapping" blank lines. In other words, if you want to delete blank lines in between full lines, use this: | |
[ \t\n]*$ | |
This one will identify the blank lines, but it will leave empty space between full lines if it is deleted: | |
^[ \t\n]*$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment