title: Python regex extract vimeo id from url
body: <pre><code>embed_url = 'http://www.vimeo.com/52422837'
  response = re.search(r'^(http://)?(www\.)?(vimeo\.com/)?([\/\d+])', embed_url)
  return response.group(4)
  </code></pre>
  
  <p>The response is:</p>
  
  <pre><code>5
  </code></pre>
  
  <p>I was hoping for </p>
  
  <pre><code>52422837
  </code></pre>
  
  <p>Anybody an idea? I'm really bad with regexes :S</p>