title: Exception in Replacement of symbols java
body: <p>I have the following, because i want to replace every special character(!,',-,[] etc) with space from a file. But i want to keep the .  and the ,</p>
  <p>How can i add an exception for only those 2 punctuations(comma and dot)?</p>
  <pre><code>content = content.replaceAll(&quot;[^a-zA-Z0-9]&quot;, &quot; &quot;)
  </code></pre>