How to trim the string which have ~ and 0 characters.
My String like this..."Windshield~0~0|R View Mirror~0~0|F Bumper Cover Lower~0~0|......."
I don't want ~ and 0 characters.....and i have tried .TrimEnd('~','0').but not working....
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Raja TPosted Jul 27, 2016, 1:46 AM
Rajeesh MenothPosted Jul 27, 2016, 4:44 AM
JohnPosted Jul 27, 2016, 1:32 AM
string abc = "Windshield~0~0";abc.Replace("~","");abc.Replace("0","");