title: Jmeter - Regular expression to stop at first match
body: <p>I want to get 2269 from below html response. I use </p>
  
  <pre><code>&lt;td&gt;XYZ Market Services \(Sydney\)&lt;/td&gt;(?s).*name="addCompany" value="(.+?)" 
  </code></pre>
  
  <p>Regular Expression with $1$ template and match number 1. but it returns 2271. Somebody please help me to create a regular expression to get the value 2269.</p>
  
  <pre><code>        &lt;tr&gt;
              &lt;td&gt;XYZ Market Services (Sydney)&lt;/td&gt;
              &lt;td class="center"&gt;
                  &lt;form action="/FormBuilder/pages/Folders/add.aspx?group=1424sfksdfsdgdsf243-3Q-w&amp;ajax=true" method="post"&gt;
                      &lt;input name="addCompany" value="2269" type="hidden" /&gt;&lt;input class="XYZLookAlike" type="button" onclick="fnload(this)" value="Add" /&gt;
                  &lt;/form&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  
          &lt;tr&gt;
              &lt;td&gt;XYZ Market Services (Melbourne)&lt;/td&gt;
              &lt;td class="center"&gt;
                  &lt;form action="/FormBuilder/pages/Folders/add.aspx?group=1424sfksdfsdgdsf243-3Q-w&amp;ajax=true" method="post"&gt;
                      &lt;input name="addCompany" value="2271" type="hidden" /&gt;&lt;input class="XYZLookAlike" type="button" onclick="fnload(this)" value="Add" /&gt;
                  &lt;/form&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
  </code></pre>
  
  <p>Thank you...</p>