"(?!.*[^\n])" or "(?!.*\\S)" depending on how strict you want to be.
In reply to Re: Multiline match for empty string by ikegami in thread Multiline match for empty string by josh803316