0

Regular Expression -"p_instance" value="(.*?)" Match count: 1 Match[1][0]="p_instance" value="11917272245034" Match[1][1]=11917272245034

When added $1$ in template - error is displayed(request is not created) $1$$1$ is dding duplicate strings in the request. What should be the template to fetch this value

VMA
  • 61
  • 7

1 Answers1

0

Just add a Debug Sampler to your Test Plan - this way you will be able to see all the variables generated by the Regular Expression Extractor in the View Results Tree listener. See How to Debug your Apache JMeter Script article for more details.

Going forward when asking for a help with the regular expressions include essential part of the response and indicate which value you are looking for.


Here comes mandatory advice not to use regular expressions for parsing HTML and suggestion to use CSS/JQuery Extractor or XPath Extractor instead.

Community
  • 1
  • 1
Dmitri T
  • 159,985
  • 5
  • 83
  • 133
  • Thanks for the reply,Regular expression is fetching right value as per debug sampler.In my case I have added two regex post processors against same request 1- for instance and other for submission id.In request $1$ is fetching correct submission id but same in other regular expression is throwing error. response : – VMA Apr 21 '17 at 04:10