4
How can I remove my last characters from a string before reaching a certain character? For example:
string url = "www.google.com/test";
I needed to remove the test word until I reached the "/" character. I would like to play the rest in another variable, just like this:
string result = "www.google.com";
Is that even possible? Thanks in advance!
Perfect friend, that’s exactly what I needed! I’ll just wait 5 minutes to approve your answer.. Thanks!
– Emerson