Jmeter Regular Expression Extractor for "sesskey"

Jmeter Regular Expression Extractor for "sesskey"

by Arabinda P -
Number of replies: 3

Hi,

In Moodle 3.3, the sesskey string I get in Body of HTML response is as follows:


"sesskey":"UwbhhWTeq1","themerev":"1498329330",


Please let me know the REGEX expression for me to extract sesskey value which is : UwbhhWTeq1  (above case)

Thank you.

Regards

Arabinda


Average of ratings: -
In reply to Arabinda P

Re: Jmeter Regular Expression Extractor for "sesskey"

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

"sesskey":"(\w+)"

Would probably do it. Or

"sesskey":"[^"]+"


In reply to Tim Hunt

Re: Jmeter Regular Expression Extractor for "sesskey"

by Arabinda P -

Thank you, Tim. I tried both and they select the below string:

sesskey":"oqASkSDNE 

I would like the value of SessKey as output.

How to get modify the regex to get only token "oqASkSDNE"?

This is your recommended regex.

"sesskey":"[^"]+"

Please guide me, thank you!


Regards

Arabinda