Skip to content

Instantly share code, notes, and snippets.

@sosukeinu
Created January 29, 2013 16:29
Show Gist options
  • Save sosukeinu/4665559 to your computer and use it in GitHub Desktop.
Save sosukeinu/4665559 to your computer and use it in GitHub Desktop.
REGEX:empty lines
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