-2

I am using this regex to extract data in cell and pass to subsequent request where it is needed in JMeter. Using Reg-ex to extract the data in cell:

"cell":\["","(.*?)","(.*?)","(.*?)","(.*?)","(.*?)","(.*?)","(.*?)","(.*?)","(.*?)","","(.*?)","(.*?)","(.*?)"]}]}

Can someone help to enhance it using beanshell or store it in array and then pass it to subsequent request?

Ori Marko
  • 56,308
  • 23
  • 131
  • 233

1 Answers1

0

It seems you are trying to extract something from JSON response. Using regular expressions for this is not very recommended.

Be aware that starting from JMeter 3.0 there is a JSON Extractor which can be used for fetching data from JSON responses using JsonPath language.

The relevant JsonPath expression to get the content of cell element will be as simple as:

$..cell 

Going forward please try to include at least essential parts of the response into your question.

Dmitri T
  • 159,985
  • 5
  • 83
  • 133