I've got this kind of response.
</api/sale/mailboxApplications/confirm-email?verificationCode=SPTp%2FMl6Dbmqn3%2BlN0nsIfBIqmAN16Tc%2F4Hy30VIjb50US%2FRHRlzoKFRg4JjFBxeHmpecJCaiuZwtUCtVL3ELQDfw2USXHQt6Nmx87KUSzepmhlWvcXLgwLqL0vYR2Py4%2B6Fu9TIijAPrWbxPJ%2F9eelmqfzGrtxbd8Vu9u9LcrI%3D&applicationId=3c77be27-98bd-4fac-bbf8-cfa201ce1a24
or
/api/sale/mailboxApplications/confirm-email?verificationCode=%2B1YDDRKZUi7D5nMsArlhnn6eOPtIp6aWM%2BVv6fg8OjzcBcPQI5bAQq3pHuJq8O7T0LmRrzfcwrd71VfZ2VCHVUOSGCaSa1np6XYQ0sswIPBFzepUMFi%2FynWRvrNhgA0fhvsC56nNArhYPcnghsTnRyUod%2BiS6u6CDTlYvmqzKsc%3D&applicationId=733f125b-61bd-4876-aded-ed95f02da4c4 </pre>
My problem is that I can't get "verificationCode" from this response, which is between "verificationCode=" and "&"
I tried this kind of regex but none of them worked:
(?<=verificationCode=)(.*\n?)(?=&)
(?<=verificationCode=).*?(?=&)
(?<=verificationCode=)(.+)(?=&)
(?<=verificationCode=)(.*)(?=&)
Every time, jmeter returns "0" as a default value.
I have checked every of these regexes in https://regex101.com/ and they work well up there What I have missed?



Nevermind. I put
verificationCode=(?s)(.*)&and set group number as $1$Works fine