title: Regexp extract XML attribute value
body: <p>please, advice how to get xml attribute value with regexp python style. </p>
  
  <p>Here is the example, the extract has to be full match(long story)</p>
  
  <pre><code>&lt;method code="ABC"&gt;
  </code></pre>
  
  <p>the most I achieved is <code>(?&lt;=code=\")(.*?)(?=\"&gt;)</code>, but that ignores method part at all</p>
  
  <p>thanks</p>