Skip to main content
1 of 5
QAMember
  • 1.5k
  • 15
  • 37
  • 57

Jmeter regular expression extractor

I have requirement to fetch the id of an tag based on the country name(TestIndia1) , I am trying to edit the record while editing it requires the id .So please let me know how to fetch the id from the html using regular expression or xpath extractor.

<tr role="row" id="241" tabindex="-1" class="ui-widget-content jqgrow ui-row-ltr">
    <td role="gridcell" style="text-align:center;width: 30px;" aria-describedby="list2_cb">
    <input role="checkbox" type="checkbox" id="jqg_list2_241" class="regular-checkbox cbox" name="jqg_list2_241"><label for="jqg_list2_241">
    </label></td><td role="gridcell" aria-describedby="list2_subgrid" class="ui-sgcollapsed sgcollapsed " style="">
    <a style="cursor:pointer;"><span class="ui-icon ui-icon-plus"></span></a></td>
    <td role="gridcell" style="text-align:left;" aria-describedby="list2_mc_country"><a class="inline-edit-link " href="http://example.com|id|241">TestIndia1</a></td>    
QAMember
  • 1.5k
  • 15
  • 37
  • 57