Here is the sample view
<a class="main mainAnchor current currentAnchor" tabindex="-1" href="Form1">
<span>Home</span>
<a class="main mainAnchor parent parentAnchor" tabindex="-1" href="Form2">
<span>About Us</span>
<a class="sub subAnchor" tabindex="-1" href="Form3">
<span>Landing</span>
<a class="sub subAnchor" tabindex="-1" href="Form4">
<span>Contact Us</span>
<a class="sub subAnchor" tabindex="-1" href="Form5">
<span>Hours & Map</span
In Jmeter i am using the regular expression as
(<a)\s+(class="(.+?)")\s+(tabindex="-1")\s+(href="(.+?)")>(\n|\r)\s+(<span>)(.+)
Using above regular Expression i am getting totol of 58 matchs here is the sample result for regular expresion Match count: 58
Match[1][0]=<a class="main mainAnchor current currentAnchor" tabindex="-1" href="Form1">
<span>some text</span>
Match[1][1]=<a
Match[1][2]=class="some text"
Match[1][3]=some text
Match[1][4]=tabindex="-1"
Match[1][5]=href="Form1"
Match[1][6]=Form1
Match[1][7]=
Match[1][8]=<span>
Match[1][9]=some text</span>
Match[2][0]=<a class="main mainAnchor parent parentAnchor" tabindex="-1" href="Form2">
<span>some text</span>
Match[2][1]=<a
Match[2][2]=class="some text"
Match[2][3]=some text
Match[2][4]=tabindex="-1"
Match[2][5]=href="Form2"
Match[2][6]=Form2
Match[2][7]=
Match[2][8]=<span>
Match[2][9]=About Us</span>
Match[3][0]=<a class="sub subAnchor" tabindex="-1" href="Form3">
<span>some text</span>
Match[3][1]=<a
Match[3][2]=class="sub subAnchor"
Match[3][3]=sub subAnchor
Match[3][4]=tabindex="-1"
Match[3][5]=href="Form3"
Match[3][6]=Form3
Match[3][7]=
Match[3][8]=<span>
Match[3][9]=some text</span>
and i am able to get the first value like this referenceName_g6 i want to retrive all the values of attribute href Form2,Form3,Form4 ...etc After getting the values i want to pass this(referenceName_g6) one by one value to Path value of next http request Please help on this... Thanks in advance..