I want to trim the following string "Uploads\photoshop.pdf"
the result should be "photoshop.pdf"
how to do?Can anyone help me out..
Loading
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.
Hemant SrivastavaPosted Nov 6, 2013, 9:22 AM
VulpesPosted Nov 6, 2013, 7:05 AM
Abhay ShankerPosted Nov 6, 2013, 3:45 AM
brahmam marabathulaPosted Nov 6, 2013, 3:00 AM
string str = "hai/"
str.TrimEnd('/');
venkata kumarPosted Nov 6, 2013, 2:39 AM
try this
string[] result= ("Uploads\photoshop.pdf").split('\');
string res=result[1];