I'm trying to use PHP match some strings of code in a document.
The document has multiple lines, with a typical section of code looking like this:
Right now I'm using the following line of code to try to match everything after the "csv.zip" and the line break and upto "------":
My major problem is that its not catching anything. I think this might have to do with the line breaks. My understanding is .* will match upto zero-plus characters of anything except for line breaks, so thats why I said that or upto zero-plus line breaks. Should that part of the code be different?
The other issue I'm having is that I think this will includ the starting and ending lines of the match. How might I code this so that it includes everything inbetween except for the end pieces?