I'm send a http request to receive a token. But I find that I receive from response 2 format of token randomly.
First format is:
Take a look at __urldecode() function, my expectation is that it should help you to deal with the "different formats"
More information on JMeter Functions concept: Apache JMeter Functions - An Introduction