How to remove repeating characters from a text sentence? : <p>I have a list of text sentences and there are many words such as aaaaa, zzzzz, eeer, qqqqqqq...</p>

<p>I am looking for a way to remove these from my text sentence.</p>

<pre><code>text = I'm a really good aaaaaa eeeeer jjjjj llll bb
</code></pre>

<p>I couldn't figure out what regex I could use so I can remove these words completely. There are some edge cases like </p>

<pre><code>1) aaaaae (you will have one another character at the end)
2) brrrrrr (another character at the beginning)
</code></pre>

<p>I'm looking for a output like this,</p>

<pre><code>text = I'm really good
</code></pre>

<p>I just couldn't figure out how to do it.</p>
