Pattern response mapping is very powerful, but can be tricky where there is variability or optional content possible in a response. The attached response map illustrates how multiple variable lines in a response can be ignored.
Given a response such as:
pattern of interest: 987 tagA - start of stuff to ignore ignore line more ignore line tagB - end of stuff to ignore more pattern of interest: xyz
If only the first and last lines are of interest, the lines tagA through tagB can be skipped using the following anchor.
Where (.*[\n\r]+)+ represent the lines to be skipped. The [^\n\r]+ is used to skip the text trailing tagB.