i have the below response in JMeter where i need to pass the sign value in the next session for the request to process. i used the below regex &sign=(.*)+ which results in total value which don’t want.
any help is appreciated
&sign=3aab2959b89c06dd43d369bfd06ec614&return=001
>Solution :
You may phrase your regex as stopping before hitting an ampersand & in the query string, should one exist:
\bsign=([^&]+)
The leading \bsign portion should match sign preceded by either ? or &. We then capture ([^&]+), which capture either until the end of the query string, or the nearest & separator, whichever occurs first.