-1

For this task i have to capture not only month and year but also the entire string starting from i.e < a href using dummy sampler and regular expression extractor can u pls suggest me

0
1

You can go for something like:

<a href="(/statement.php\?month=(\d+)&amp;year=(\d+))"> 

This will result in the following matches:

Match[1][0]=<a href="/statement.php?month=07&amp;year=2018"> 
Match[1][1]=/statement.php?month=07&amp;year=2018
Match[1][2]=07
Match[1][3]=2018

Demo:

JMeter Regular Expressions Demo

References:

1
  • for the above task how to Create a two variables , assign month as one variable and year as one variable and Pass these assigned variables into another request.using bean shell post processor and dummy sampler . – Guruganesh Jul 18 '18 at 10:18

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