title: Overlapping regex matches
body: <p>I'm trying to create the following regular expression: return a string between <code>AUG</code> and (<code>UAG</code> or <code>UGA</code> or <code>UAA</code>) from a following RNA string: <code>AGCCAUGUAGCUAACUCAGGUUACAUGGGGAUGACCCCGCGACUUGGAUUAGAGUCUCUUUUGGAAUAAGCCUGAAUGAUCCGAGUAGCAUCUCAG</code>, so that all matches would be found, including the overlapping ones.</p>
  
  <p>I've tried several regexes, ending up with something like that:</p>
  
  <pre><code>matches = re.findall('(?=AUG)(\w+)(?=UAG|UGA|UAA)',"AGCCAUGUAGCUAACUCAGGUUACAUGGGGAUGACCCCGCGACUUGGAUUAGAGUCUCUUUUGGAAUAAGCCUGAAUGAUCCGAGUAGCAUCUCAG")
  </code></pre>
  
  <p>Could you show me the errors in my regex pattern?</p>