regex empty line code example
Example 1: regular expression to remove empty lines after text
Find: ^(?:[\t ]*(?:\r?\n|\r))+
Replace: ""
Example 2: regex to check non empty string
/^(?!\s*$).+/
Find: ^(?:[\t ]*(?:\r?\n|\r))+
Replace: ""
/^(?!\s*$).+/