skip to main
|
skip to sidebar
Web & Software Techniques and Tips
Monday, March 15, 2021
Trim last character from a string or each word C#
Input:
I have a string say
"Hello
!
world
!
"
I want to do a trim or a remove to take out the ! off world but not off Hello.
Solution:
"Hello! world!"
.
TrimEnd
(
'!'
);
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
About Me
Nanthakumar.T
View my complete profile
Blog Archive
▼
2021
(20)
▼
March
(20)
No creatable public component detected
Add an XML Sitemap to your Blogger Blog
Install and uninstall Windows services using Insta...
Refresh the list of remote branches in Visual Stud...
Calculate Date and Time Difference Between Two Dat...
Copy paste not working issue in Remote Desktop (RDP)
Trim last character from a string or each word C#
PHP: short_open_tag Not working in php 5.3.1
Remember to set UpdatePanel's UpdateMode to Condit...
GROUPING SETS Clause in SQL Server
How to get first record out of each group from the...
PHP Coupon Script v 4.0
The SQL Server (RELYONDB) service on local compute...
Using the Microsoft Web Platform Installer
PHP: <? ?> Tags Not Working in PHP 5.3.x under UNI...
SQL - Calculating time difference in Minutes, Hour...
Parsing a URL with SQL Server Functions
ASP.NET MVC - Data Binding for Hierarchical Views...
ClosedXml Excel Process Examples C#
Permutation Algorithm for Words C#
►
2012
(82)
►
December
(1)
►
November
(4)
►
October
(3)
►
September
(4)
►
August
(4)
►
July
(6)
►
June
(21)
►
May
(15)
►
April
(12)
►
March
(4)
►
February
(1)
►
January
(7)
►
2011
(131)
►
December
(18)
►
November
(9)
►
October
(24)
►
September
(15)
►
August
(18)
►
July
(8)
►
June
(13)
►
May
(25)
►
April
(1)
Total Pageviews
Tags
Android
(2)
Android - Http Client get /post method
(1)
Android localhost HttpClient Connection Refused
(1)
Checking and unchecking
(1)
Hello world
(1)
jQuery Checkboxes
(1)
json
(1)
php
(1)
syntax Editor
(1)
xml
(1)
No comments:
Post a Comment