in reply to I need to regex multiple lines

Yet another approach to consider is one that might be used say with Perl's little brother, awk. This tool is based on the idea of “here's a bunch of regular-expressions and code-blocks. For each line, find the matching expression(s) and do what they say.” Importantly, there is also a BEGIN block that's executed before the first line, and an END block that's executed afterwards. (Yes, this is where Larry Wall got that idea...)

So what you can do is to define a “state machine” of sorts. For instance, when you see a line that starts with 'LENGTH' you go into this mode; when you see 'SUBJECT' you go into that mode, and so-on. The “mode” value then tells you what to do with each line that does not match any of these; say, a line consisting of dots.

What's “the right way” to do it? Of course there is none. But this approach is useful to put into your thinking-cap when you must deal with a more complicated issue such as parsing a printed-output file.

Finally, for very complicated inputs, you can actually use a true parser.