Regular Expression To Match All Blank Lines In Document

A regular expression that matches all blank lines in a document. This can be useful in deleting blank/empty lines generated in Sublime 2/3.

/^(\r|\n\r?)/

Matches:

  • All blank lines

See Also:

Regex Is Copied!