title: regex match all xml tags that contain a certain attribute value
body: <p>I have an xml file where I want to match all xml tags that contain an attribute matching a certain string in Perl.</p>
  
  <p>Sample XML:</p>
  
  <pre><code>&lt;item attr="Car" /&gt;
  &lt;item attr="Apple_And_Pears.htm#123" /&gt;
  &lt;item attr="Paper" /&gt;
  &lt;item attr="Orange_And_Peach.htm#213" /&gt;
  </code></pre>
  
  <p>I want a regex that grabs all nodes that has an attribute that contains ".htm"</p>
  
  <pre><code>&lt;item attr="Orange_And_Peach.htm#213" /&gt;
  &lt;item attr="Apple_And_Pears.htm#123" /&gt;
  </code></pre>
  
  <p>With the following regex, I'm matching with all tags rather than only tags with .htm attribute:</p>
  
  <pre><code>&lt;item.*?attr="[^&gt;]*&gt;
  </code></pre>
  
  <p>Is there some sort of positive lookahead until a certain character?</p>
  
  <p>Thanks</p>