title: how remove special characters from the end of every word in a string?
body: <p>i want it match only the end of every word</p>
  
  <p>example:</p>
  
  <pre><code>"i am test-ing., i am test.ing-, i am_, test_ing," 
  </code></pre>
  
  <p>output should be:</p>
  
  <pre><code>"i am test-ing i am test.ing i am test_ing"
  </code></pre>