regular expression to remove empty lines after text

JavaScript
Find: ^(?:[\t ]*(?:\r?\n|\r))+
Replace: ""
Source

Also in JavaScript: