in reply to matching several lines

Shameless self plugging, this is the what I was referring to in my Structural Regular Expressions post. Find the inner structure and parse accordingly.

Software speaks in tongues of man; I debug, therefore I code.
Stop saying 'script'. Stop saying 'line-noise'.