title: removing a comma or semicolon from the end of a string if present -using javascript
body: <p>I am getting a comma seperated or semicolon seperated string.
  I want to remove the comma or the semicolon which may occur at the end of the string.</p>
  
  <p><b>
  e.g.a,b,c, should be converted to a,b,c</p>
  
  <p><p> a;b;c; should be converted to a;b;c
  </b></p></p>
  
  <p>I want a javascript or regex expression which removes the comma (<strong>,</strong>) or the semi colon (<strong>;</strong>) only if it occurs otherwise the string should be left as it is.</p>
  
  <p>please help</p>