title: Removing punctuation except for apostrophes AND intra-word dashes in R
body: <p>I know how to separately remove punctuation and keep apostrophes:   </p>
  
  <pre><code>gsub( "[^[:alnum:]']", " ", db$text )  
  </code></pre>
  
  <p>or how to keep intra-word dashes with the tm package:</p>
  
  <pre><code>removePunctuation(db$text, preserve_intra_word_dashes = TRUE)
  </code></pre>
  
  <p>but I cannot find a way to do both at the same time. For example if my original sentence is:</p>
  
  <pre><code>"Interested in energy/the environment/etc.? Congrats to our new e-board! Ben, Nathan, Jenny, and Adam, y'all are sure to lead the club in a great direction next year! #obama #swag"
  </code></pre>
  
  <p>I would like it to be:</p>
  
  <pre><code>"Interested in energy the environment etc Congrats to our new e-board Ben Nathan Jenny and Adam y'all are sure to lead the club in a great direction next year obama swag"
  </code></pre>
  
  <p>Of course, there will be extra white spaces, but I can remove them later. </p>
  
  <p>I will be grateful for your help.</p>