How to remove repeated chars from string but with exceptions like 'good' or 'cool'?
<p>I'm trying to remove repeated chars from strings like 
I looooovvee  this. It's awesomee. Very gooood.</p>

<p>to an output like:
I love this. It's awesome, Very good.</p>

<p>I'm already using in PHP this instrunction
$str=preg_replace("/(.)\1+/", "$1", $str);</p>

<p>But it outputs
I love this. It's awesome. Very god.</p>

<p>The problem is in words that already should have repeated chars like 'good' or 'cool'</p>