remove possible empty lines before regex