Skip to content

Instantly share code, notes, and snippets.

@Chapoton
Created December 17, 2017 18:03
Show Gist options
  • Save Chapoton/1227fdb1a63c12e5a6a9709e52ebc36c to your computer and use it in GitHub Desktop.
Save Chapoton/1227fdb1a63c12e5a6a9709e52ebc36c to your computer and use it in GitHub Desktop.
To remove all blank lines in document, find all instances using this regex and replace with nothing.
^(?:[\t ]*(?:\r?\n|\r))+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment