How to remove multiple consecutive special characters in R?
<p>How can I alter the following strings to not contain multiple consecutive question marks / other special characters in R?</p>

<pre><code>"Nice one!!!"
</code></pre>

<p>should become</p>

<pre><code>"Nice one!"
</code></pre>

<p>and</p>

<pre><code>"Whazzup????!!"
</code></pre>

<p>should become</p>

<pre><code>"Whazzup?!"
</code></pre>

<p>I experimented with multiple regex commands without success. Obviously I can replace two question marks with one but I want it to be independent of the amount of special characters.</p>

<p>This is different from the marked duplicate because it deals with special characters.</p>