title: Regex backreference findall not working
body: <p>I have recently been using regexes in a program. In this program I used them to find words in a list of words that matched a certain RE. However, when i tried backreferencing with this program, I got an interesting result.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>import re
  pattern = re.compile(r"[abcgr]([a-z])\1[ldc]")
  string = "reel reed have that with this they"
  print(re.findall(pattern, string))
  </code></pre>
  
  <p>What I expected was the result <code>["reel","reed"]</code> (the regex matched these when I used it with <a href="http://pythex.org/" rel="nofollow">Pythex</a>)</p>
  
  <p>However, when I ran the code using python (I use 3.5.1) I got the following result:</p>
  
  <p><code>['e','e']</code></p>
  
  <p>Please can someone with more experience with REs explain why I am getting this problem and what I can do to resolve it.</p>
  
  <p>Thank you.</p>