removing more than two consecutive chars
<p>I want to remove any <code>char</code> which repeats more than two times consecutive. </p>

<pre><code>import re
re.sub(r'([a-z])\1+', r'\1', 'ffffffbbbbbbbqqq')
</code></pre>

<p>it's returning me <code>fbq</code>, while I need <code>ffbbqq</code>. The goal is pre-process the string before doing a spell checking. What am I doing wrong? </p>
