I have this string and I want to remove all characters starting from the begining till the last backslash "\" char . Note , this is just an example . The string will be changable and has no fixed number of characters .Code:string path=@"C:\data\test\test2\test3\test4";
Result I need is like this :
"test4"
Thanks .





Reply With Quote