title: Python regex findall works but match does not
body: <p>I'm testing this in IPython.  The variable <code>t</code> is being set from text in a dictionary and returns: </p>
  
  <pre><code>u'http://www.amazon.com/dp/B003T0G9GM/ref=wl_it_dp_v_nS_ttl/177-5611794-0982247?_encoding=UTF8&amp;colid=SBGZJRGMR8TA&amp;coliid=I205LCXDIRSLL3'
  </code></pre>
  
  <p>using this code:</p>
  
  <pre><code>r = r'amazon\.com/dp/(\w{10})' 
  m = re.findall(r,t)
  </code></pre>
  
  <p>matches correctly and <code>m</code> returns <code>[u'B003T0G9GM']</code></p>
  
  <p>Using this code,</p>
  
  <pre><code>p = re.compile(r)
  m = p.match(t)
  </code></pre>
  
  <p><code>m</code> returns <code>None</code></p>
  
  <p>This appears correct to me after reading this documentation.
  <a href="https://docs.python.org/2/howto/regex.html#grouping" rel="noreferrer">https://docs.python.org/2/howto/regex.html#grouping</a></p>
  
  <p>I also tested here to verify the regex before trying this in IPython
  <a href="http://regex101.com/r/gG8eQ2/1" rel="noreferrer">http://regex101.com/r/gG8eQ2/1</a></p>
  
  <p>What am I missing?  </p>