TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
How to trim that last occurrence of a character in C#
Sibeesh Venu
Feb 24
2015
Code
1.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
How to trim that last occurrence of a character in C#
The below example will show you how to do that:)
string
str =
"www.SibeeshPassion.com|"
;
string
afterTrim = str.TrimEnd(
'|'
);
Here we are trimming the char '|'.