Match Pattern vi has 3 outputs, before pattern, pattern, and after pattern. Call Match Pattern with the header as the pattern. Wire "after" output into another Match Pattern, using the footer as the pattern. The "before" output will be everything between header and footer.