title: Removing punctuation marks form text in Scala - Spark
body: <p>This is one sample of my data:</p>
  
  <pre><code>case time (especially it's purse), read manual care, follow care instructions make stays waterproof -- example, inspect rubber seals doors (especially battery/memory card door open time) 
  xm "life support" picture . flip part bit flimsy guessing won't long . sound great altec speaker dock it! chance back base (xm3020) . traveling bag connect laptop extra speaker . amount paid ($25).
  </code></pre>
  
  <p>I want remove all punctuation marks except dot(.) and also remove words with <code>length &lt; = 2</code>, for example my expected output is :</p>
  
  <pre><code>case time especially its purse read manual care follow care instructions . make stays waterproof example inspect rubber seals doors especially batterymemory card door open time
  life support picture . flip part bit flimsy guessing wont long . sound great altec speaker dock chance back base xm3020 . traveling bag connect laptop extra speaker . amount paid $25 .
  </code></pre>
  
  <p>and this should be implemented in Scala ,
  i've tried :</p>
  
  <pre><code>replaceAll( """\\W\s""", "")
  replaceAll(""""[^a-zA-Z\.]""", "")
  </code></pre>
  
  <p>but doesn't work well , Can anybody help me?</p>