Thanks, what I want to do is match the block of data between the two headers so that I can put it into a separate variables so that at the end I have three variables containing the data from between the separate headers. I just can't get my head around using regexp's :o(