title: Java replace New Lines, Commas, and Spaces at end of String
body: <p>I am using</p>
  
  <pre><code>mString.replaceAll("[\n,\\s]$", "");
  </code></pre>
  
  <p>Not working, what is the correct way to remove newlines commas or spaces from the end of a string if the can appear in any order.</p>