title: Python Regex : What's wrong with this?
body: <p>I am trying to do a regex to just get the error code from this XML.</p>
  
  <pre><code>&gt;&gt;&gt; re_code = re.compile(r'&lt;errorcode&gt;([0-9]+)&lt;/errorcode&gt;', re.MULTILINE)
  &gt;&gt;&gt; re_code.match('''&lt;?xml version="1.0" encoding="ISO-8859-1" standalone="no"?&gt;
  ... &lt;methoderesponse&gt;
  ...     &lt;status&gt;
  ...         &lt;message/&gt;
  ...         &lt;errorcode&gt;515&lt;/errorcode&gt;
  ...         &lt;value&gt;ERROR&lt;/value&gt;
  ...     &lt;/status&gt;
  ... &lt;/methoderesponse&gt;
  ... ''')
  </code></pre>
  
  <p>It should be quite easy. But I don't understand why it doesn't match.</p>