in reply to Multiline match for empty string

What?

An empty string can't contain a newline

Why not just do a quick scan for two newlines in a row before you go and do the main regex?