Removing the last character of a string


/ Published in: C#
Save to your folder(s)

trimend() is cool


Copy this code and paste it in your HTML
  1. // before : mystring = "abcde;"
  2.  
  3. mystring = mystring .TrimEnd(';');
  4.  
  5. // after : mystring = "abcde"

URL: http://forums.asp.net/t/935205.aspx

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.