How can I remove my last characters from a string until I reach a certain character? For example:
string url="www.google.com/test";
I needed to remove the test pad until I got the "/" character. I would like to play the rest in another variable, just like this:
string result="www.google.com";
Is this possible? Thank you!