Removing empty lines with regular expressions

Use this in your regular expression ^\h*\R