I have a string and I want to cut off a specific part. The string looks like this:
I want to cut it so that it looks like this:
So I need to remove this:
This basically means I have to find the fifth slash in the string, and remove everything from that point on. Any way I can do that?