Skip to content

Instantly share code, notes, and snippets.

@gagarine
Created January 3, 2012 01:36
Show Gist options
  • Save gagarine/1553011 to your computer and use it in GitHub Desktop.
Save gagarine/1553011 to your computer and use it in GitHub Desktop.
useful regex
Some of the regex I think useful...
#That will match all blank lines except if the line is the very last line in the file.
^\s*[\r\n]+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment