Fix regex for empty lines