I have a string that looks like this
/root/test/test2/tesstset-werew-1
And I want to parse the word after the last /. So in this example, I want to grab the word tesstset-werew-1. What is the best way of doing this in C#? Should I split the string into an array or is there some built in function for this?