jmeter regex to ignore whitespace and new line
<p>I have a sampler that returns the following in the Response data: </p>

<blockquote>
<pre><code>for API key "fmgflanjs", use API key secret:

  afgthgdsf

Note that it's norm
</code></pre>
</blockquote>

<p>In jmeter, I am now trying to extract out the variables key (in the quotation marks but not including quotation marks) and secret (on line 2) using regex like this on this response data. But have not been able to get it to work so far. Any help is much appreciated. </p>

<p>For the key, I tried this regex: key(?s) "(.*?)"</p>

<p>For the secret, I tried this regex: secret:(?s)(.*?)(?s) Note</p>