1

I would like to know how do I use the regex in jmeter to capture tokens.

Below this the regex I have created enter image description here

And I have pass the values enter image description here

And this is the end results enter image description here

I'm suppose to get something like this admin:1448270860004:8b54935ad909437ed271f93c4487cdda. How do I do it?

2
  • 1
    Can you post that html code where it is showing generated token? Nov 24, 2015 at 7:29
  • Can you please post the response from where you want to extract token. Aug 20, 2020 at 5:23

2 Answers 2

1

Your regex is capturing one character in the range between the square brackets. Try:

([0-9A-Za-z]*:[0-9A-Za-z]*)

You can use a website to test regex in real time like this one http://www.regexr.com/

0

I assume you want the Auth token to enable login authentication in the request. Here is a tutorial on a means of accomplishing this task.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.