The response data in my test has the following line:
<head><title> My Title </title><meta charset
I checked this regular expression in the built-in regular expression test in Jmeter and found the name.
(?m)(?is)<title>\n\tMy Title\n</title>
However, when I use it as a response statement, the statement always fails.
I tried all the settings in the Apply To section. "Text response" is selected for "Test response field." I selected "Contains" for "Pattern Matching Rules."
I have a very similar problem with the regular expression extractor - the selected expression passes in the tester, but does not work with the regular expression extractor.
I believe that this may have something to do with the multi-linear nature of the answer.
Any pointers?
source share