title: Python regex to match multiple times
body: <p>I'm trying to match a pattern against strings that could have multiple instances of the pattern. I need every instance separately. <code>re.findall()</code> <em>should</em> do it but I don't know what I'm doing wrong. </p>
  
  <pre><code>pattern = re.compile('/review: (http://url.com/(\d+)\s?)+/', re.IGNORECASE)
  match = pattern.findall('this is the message. review: http://url.com/123 http://url.com/456')
  </code></pre>
  
  <p>I need '<a href="http://url.com/123" rel="noreferrer">http://url.com/123</a>', <a href="http://url.com/456" rel="noreferrer">http://url.com/456</a> and the two numbers 123 &amp; 456 to be different elements of the <code>match</code> list.</p>
  
  <p>I have also tried <code>'/review: ((http://url.com/(\d+)\s?)+)/'</code> as the pattern, but no luck.</p>