top-level header RE wasn't grabbing header due to newline at end and use of \w