I am using the Regular Expression Extractor to extract an authentication code which I need to use in the following JMeter Sampler in my test. This code is saved in the response Header as Authentication: djdjf...## (a bunch of letters and numbers followed by ##).
In the Regular Expression Extractor "Field to check" I selected the "Response Headers" radio button.
Then I entered:
Reference Name: Auth
Regular Expression: \A\w*==\z
Template: $1$
Match No. (0 for random): 1
Default Value: NOT FOUND
Where do the results from the Regular Expression Extractor execution get saved?
I was hoping the results would get saved in a User Defined Variable, defined as Auth in my Test Plan's User Defined Variable section, but if I enter Auth in the "Reference Name" of the Regular Expression Extractor, and run JMeter, Auth never gets populated.
$1$, but do not use capturing groups inside the regex. Try\A(\w*==)\zif you want the whole value to be captured. - Wiktor Stribiżew