title: R regex remove all punctuation except apostrophe
body: <p>I'm trying to remove all punctuation from a string except apostrophes.  Here's my exastr2 &lt;- </p>
  
  <pre><code>str2 &lt;- "this doesn't not have an apostrophe,.!@#$%^&amp;*()"
  gsub("[[:punct:,^\\']]"," ", str2 )
  # [1] "this doesn't not have an apostrophe,.!@#$%^&amp;*()"
  </code></pre>
  
  <p>What am I doing wrong?</p>