title: Jmeter Regular Expression Extractor find ItemID in xml
body: <p>I am new to <a href="/questions/tagged/jmeter" class="post-tag" title="show questions tagged 'jmeter'" rel="tag">jmeter</a>; I hope that I can describe my problem to you well enough.</p>
  
  <p>I am trying to use regex to extract an ItemID attribute from an xml element. Which I then use in another request. This is the XML response I am trying to extract the ItemID from:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Promise &gt;
   &lt;SuggestedOption&gt;
        &lt;Option TotalShipments="1"&gt;
             &lt;PromiseLines TotalNumberOfRecords="1"&gt;
                  &lt;PromiseLine ItemID="Col_001" &gt;
                       &lt;Assignments&gt;
                            &lt;Assignment InteractionNo="1" &gt;
                            &lt;/Assignment&gt;
                       &lt;/Assignments&gt;
                  &lt;/PromiseLine&gt;
             &lt;/PromiseLines&gt;
       &lt;/Option&gt;
   &lt;/SuggestedOption&gt;
  &lt;/Promise&gt;
  </code></pre>
  
  <p>I have the Regular Expression Extractor set up as follows:</p>
  
  <pre><code>Reference Name: item
  Regular Expression: .?ItemID=(.+?)*
  Template: $1$
  Match No.: 1
  </code></pre>
  
  <p>In the 2nd request I have set the ItemID as follows ... ItemID=${item} ... </p>
  
  <p>I know that When I use the Default Value set to "Col_001" it works fine. So there is obviously a problem with my Expression.</p>